mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +03:00
cleanup: indent
This commit is contained in:
parent
6f576483a8
commit
8f30069160
@ -330,6 +330,7 @@ static int _read_conversion_type(struct cmd_context *cmd,
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
log_error("Conversion using --type %s is not supported.", type_str);
|
log_error("Conversion using --type %s is not supported.", type_str);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -561,7 +562,6 @@ static int _read_params(struct cmd_context *cmd, int argc, char **argv,
|
|||||||
log_error("--snapshot and --merge are mutually exclusive.");
|
log_error("--snapshot and --merge are mutually exclusive.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
lp->snapshot = 1;
|
lp->snapshot = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -627,9 +627,7 @@ static int _read_params(struct cmd_context *cmd, int argc, char **argv,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (arg_is_set(cmd, mirrors_ARG)) {
|
if (arg_is_set(cmd, mirrors_ARG)) {
|
||||||
/*
|
/* --splitmirrors is the mechanism for detaching and keeping a mimage */
|
||||||
* --splitmirrors is the mechanism for detaching and keeping a mimage
|
|
||||||
*/
|
|
||||||
lp->mirrors_supplied = 1;
|
lp->mirrors_supplied = 1;
|
||||||
lp->mirrors = arg_uint_value(cmd, mirrors_ARG, 0);
|
lp->mirrors = arg_uint_value(cmd, mirrors_ARG, 0);
|
||||||
lp->mirrors_sign = arg_sign_value(cmd, mirrors_ARG, SIGN_NONE);
|
lp->mirrors_sign = arg_sign_value(cmd, mirrors_ARG, SIGN_NONE);
|
||||||
@ -4272,6 +4270,7 @@ static int _convert_raid(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
struct lvconvert_params *lp)
|
struct lvconvert_params *lp)
|
||||||
{
|
{
|
||||||
/* Permitted convert options on visible or hidden RaidLVs */
|
/* Permitted convert options on visible or hidden RaidLVs */
|
||||||
|
/* The --thinpool alternative for --type thin-pool is not preferred, so not shown. */
|
||||||
const char *permitted_options = lv_is_visible(lv) ?
|
const char *permitted_options = lv_is_visible(lv) ?
|
||||||
" --mirrors\n"
|
" --mirrors\n"
|
||||||
" --splitmirrors\n"
|
" --splitmirrors\n"
|
||||||
@ -4347,13 +4346,12 @@ static int _convert_raid(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
if (segtype_is_cache_pool(lp->segtype) ||
|
if (segtype_is_cache_pool(lp->segtype) ||
|
||||||
arg_is_set(cmd, cachepool_ARG))
|
arg_is_set(cmd, cachepool_ARG))
|
||||||
return _convert_raid_cache_pool(cmd, lv, lp);
|
return _convert_raid_cache_pool(cmd, lv, lp);
|
||||||
|
|
||||||
/* The --thinpool alternative for --type thin-pool is not preferred, so not shown. */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
log_error("Operation not permitted on raid LV %s.", display_lvname(lv));
|
log_error("Operation not permitted on raid LV %s.", display_lvname(lv));
|
||||||
log_error("Operations permitted on a raid LV are:\n%s", permitted_options);
|
log_error("Operations permitted on a raid LV are:\n%s", permitted_options);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user