mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: indent
This commit is contained in:
parent
2941cffd2c
commit
54184f92ac
@ -1077,15 +1077,13 @@ static void _lvconvert_mirrors_repair_ask(struct cmd_context *cmd,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (failed_log &&
|
if (failed_log &&
|
||||||
yes_no_prompt("Attempt to replace failed mirror log? [y/n]: ") == 'n') {
|
yes_no_prompt("Attempt to replace failed mirror log? [y/n]: ") == 'n')
|
||||||
*replace_log = 0;
|
*replace_log = 0;
|
||||||
}
|
|
||||||
|
|
||||||
if (failed_mirrors &&
|
if (failed_mirrors &&
|
||||||
yes_no_prompt("Attempt to replace failed mirror images "
|
yes_no_prompt("Attempt to replace failed mirror images "
|
||||||
"(requires full device resync)? [y/n]: ") == 'n') {
|
"(requires full device resync)? [y/n]: ") == 'n')
|
||||||
*replace_mirrors = 0;
|
*replace_mirrors = 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1677,15 +1675,13 @@ static int _lvconvert_mirrors_repair(struct cmd_context *cmd,
|
|||||||
if (_lvconvert_mirrors_aux(cmd, lv, lp, NULL,
|
if (_lvconvert_mirrors_aux(cmd, lv, lp, NULL,
|
||||||
lp->mirrors, log_count))
|
lp->mirrors, log_count))
|
||||||
break;
|
break;
|
||||||
else {
|
|
||||||
if (lp->mirrors > 2)
|
if (lp->mirrors > 2)
|
||||||
-- lp->mirrors;
|
--lp->mirrors;
|
||||||
else if (log_count > 0)
|
else if (log_count > 0)
|
||||||
-- log_count;
|
--log_count;
|
||||||
else
|
else
|
||||||
break; /* nowhere to go, anymore... */
|
break; /* nowhere to go, anymore... */
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (replace_mimages && lv_mirror_count(lv) != original_mimages)
|
if (replace_mimages && lv_mirror_count(lv) != original_mimages)
|
||||||
log_warn("WARNING: Failed to replace %d of %d images in volume %s",
|
log_warn("WARNING: Failed to replace %d of %d images in volume %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user