mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Make force_t enum usage obvious
This commit is contained in:
parent
3af1ebe31e
commit
6fa41e8a21
@ -104,7 +104,7 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg)
|
|||||||
if (!lv_is_visible(lv))
|
if (!lv_is_visible(lv))
|
||||||
continue;
|
continue;
|
||||||
log_warn("Removing partial LV %s.", lv->name);
|
log_warn("Removing partial LV %s.", lv->name);
|
||||||
if (!lv_remove_with_dependencies(cmd, lv, 1, 0))
|
if (!lv_remove_with_dependencies(cmd, lv, DONT_PROMPT, 0))
|
||||||
return_0;
|
return_0;
|
||||||
goto restart;
|
goto restart;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ static int vgremove_single(struct cmd_context *cmd, const char *vg_name,
|
|||||||
|
|
||||||
lv_count = vg_visible_lvs(vg);
|
lv_count = vg_visible_lvs(vg);
|
||||||
|
|
||||||
force = arg_count(cmd, force_ARG);
|
force = (force_t) arg_count(cmd, force_ARG);
|
||||||
if (lv_count) {
|
if (lv_count) {
|
||||||
if (force == PROMPT) {
|
if (force == PROMPT) {
|
||||||
if ((missing = vg_missing_pv_count(vg)))
|
if ((missing = vg_missing_pv_count(vg)))
|
||||||
|
Loading…
Reference in New Issue
Block a user