1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Make force_t enum usage obvious

This commit is contained in:
Zdenek Kabelac 2012-02-27 10:06:58 +00:00
parent 3af1ebe31e
commit 6fa41e8a21
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg)
if (!lv_is_visible(lv))
continue;
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;
goto restart;
}

View File

@ -29,7 +29,7 @@ static int vgremove_single(struct cmd_context *cmd, const char *vg_name,
lv_count = vg_visible_lvs(vg);
force = arg_count(cmd, force_ARG);
force = (force_t) arg_count(cmd, force_ARG);
if (lv_count) {
if (force == PROMPT) {
if ((missing = vg_missing_pv_count(vg)))