diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2020-08-29 21:53:05 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2020-09-01 17:57:50 +0200 |
commit | a37565709232085a61063385c1042a0ade0bc10b (patch) | |
tree | 6daa57c8212871b875420005e02a07f8735df518 /tools/lvcreate.c | |
parent | dbb19f6ace5210a880f107cbae34081db0457d1e (diff) | |
download | lvm2-a37565709232085a61063385c1042a0ade0bc10b.tar.gz |
cleanup: user force_t enums instead of ints
Diffstat (limited to 'tools/lvcreate.c')
-rw-r--r-- | tools/lvcreate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 3357a08c5..e384291ae 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -1826,7 +1826,7 @@ static int _lvcreate_and_attach_writecache_single(struct cmd_context *cmd, log_error("Removing new LV after failing to add writecache."); if (!deactivate_lv(cmd, lv)) log_error("Failed to deactivate new LV %s.", display_lvname(lv)); - if (!lv_remove_with_dependencies(cmd, lv, 1, 0)) + if (!lv_remove_with_dependencies(cmd, lv, DONT_PROMPT, 0)) log_error("Failed to remove new LV %s.", display_lvname(lv)); return ECMD_FAILED; } @@ -1900,7 +1900,7 @@ static int _lvcreate_and_attach_cache_single(struct cmd_context *cmd, log_error("Removing new LV after failing to add cache."); if (!deactivate_lv(cmd, lv)) log_error("Failed to deactivate new LV %s.", display_lvname(lv)); - if (!lv_remove_with_dependencies(cmd, lv, 1, 0)) + if (!lv_remove_with_dependencies(cmd, lv, DONT_PROMPT, 0)) log_error("Failed to remove new LV %s.", display_lvname(lv)); return ECMD_FAILED; } |