]> sourceware.org Git - lvm2.git/commitdiff
cleanup: user force_t enums instead of ints
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 29 Aug 2020 19:53:05 +0000 (21:53 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 1 Sep 2020 15:57:50 +0000 (17:57 +0200)
tools/lvcreate.c
tools/vgextend.c

index 3357a08c55fcd3e48aa5646c1c53794f16df07a1..e384291ae1c73c51ece8216925e91a75d1d10b1f 100644 (file)
@@ -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;
        }
index da768981d72d4dcf95c4a90a1f4b570ba5df6ed2..dca87ff62195bf0e79d621870eb6559ae62c1e3c 100644 (file)
@@ -161,7 +161,7 @@ int vgextend(struct cmd_context *cmd, int argc, char **argv)
        pp->preserve_existing = 1;
 
        /* pvcreate within vgextend cannot be forced. */
-       pp->force = 0;
+       pp->force = PROMPT;
 
        if (!lock_global(cmd, "ex"))
                return_ECMD_FAILED;
This page took 0.051611 seconds and 5 git commands to generate.