mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: indent changes
This commit is contained in:
parent
f7d6614061
commit
d5d883d91b
@ -553,9 +553,9 @@ static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* --regionsize is only valid if converting an LV into a mirror.
|
* --regionsize is only valid if converting an LV into a mirror.
|
||||||
* Checked when we know the state of the LV being converted.
|
* Checked when we know the state of the LV being converted.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (arg_count(cmd, regionsize_ARG)) {
|
if (arg_count(cmd, regionsize_ARG)) {
|
||||||
if (arg_sign_value(cmd, regionsize_ARG, SIGN_NONE) ==
|
if (arg_sign_value(cmd, regionsize_ARG, SIGN_NONE) ==
|
||||||
@ -715,7 +715,7 @@ static int _finish_lvconvert_mirror(struct cmd_context *cmd,
|
|||||||
|
|
||||||
log_very_verbose("Updating logical volume \"%s\" on disk(s)", lv->name);
|
log_very_verbose("Updating logical volume \"%s\" on disk(s)", lv->name);
|
||||||
|
|
||||||
if (!(_reload_lv(cmd, vg, lv)))
|
if (!_reload_lv(cmd, vg, lv))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
log_print_unless_silent("Logical volume %s converted.", lv->name);
|
log_print_unless_silent("Logical volume %s converted.", lv->name);
|
||||||
@ -1992,20 +1992,20 @@ static int _lvconvert_splitsnapshot(struct cmd_context *cmd, struct logical_volu
|
|||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lv_info(cmd, cow, 0, &info, 1, 0)) {
|
if (lv_info(cmd, cow, 0, &info, 1, 0)) {
|
||||||
if (!lv_check_not_in_use(cmd, cow, &info))
|
if (!lv_check_not_in_use(cmd, cow, &info))
|
||||||
return_ECMD_FAILED;
|
return_ECMD_FAILED;
|
||||||
|
|
||||||
if ((lp->force == PROMPT) &&
|
if ((lp->force == PROMPT) &&
|
||||||
lv_is_visible(cow) &&
|
lv_is_visible(cow) &&
|
||||||
lv_is_active(cow)) {
|
lv_is_active(cow)) {
|
||||||
if (yes_no_prompt("Do you really want to split off active "
|
if (yes_no_prompt("Do you really want to split off active "
|
||||||
"logical volume %s? [y/n]: ", cow->name) == 'n') {
|
"logical volume %s? [y/n]: ", cow->name) == 'n') {
|
||||||
log_error("Logical volume %s not split.", cow->name);
|
log_error("Logical volume %s not split.", cow->name);
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!archive(vg))
|
if (!archive(vg))
|
||||||
return_ECMD_FAILED;
|
return_ECMD_FAILED;
|
||||||
|
@ -106,7 +106,7 @@ int become_daemon(struct cmd_context *cmd, int skip_lvm)
|
|||||||
* Strip dev_dir if present
|
* Strip dev_dir if present
|
||||||
*/
|
*/
|
||||||
const char *skip_dev_dir(struct cmd_context *cmd, const char *vg_name,
|
const char *skip_dev_dir(struct cmd_context *cmd, const char *vg_name,
|
||||||
unsigned *dev_dir_found)
|
unsigned *dev_dir_found)
|
||||||
{
|
{
|
||||||
const char *dmdir = dm_dir();
|
const char *dmdir = dm_dir();
|
||||||
size_t dmdir_len = strlen(dmdir), vglv_sz;
|
size_t dmdir_len = strlen(dmdir), vglv_sz;
|
||||||
@ -1773,7 +1773,7 @@ int get_stripe_params(struct cmd_context *cmd, uint32_t *stripes, uint32_t *stri
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(arg_uint64_value(cmd, stripesize_ARG, 0) > STRIPE_SIZE_LIMIT * 2) {
|
if (arg_uint64_value(cmd, stripesize_ARG, 0) > STRIPE_SIZE_LIMIT * 2) {
|
||||||
log_error("Stripe size cannot be larger than %s",
|
log_error("Stripe size cannot be larger than %s",
|
||||||
display_size(cmd, (uint64_t) STRIPE_SIZE_LIMIT));
|
display_size(cmd, (uint64_t) STRIPE_SIZE_LIMIT));
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user