]> sourceware.org Git - lvm2.git/commitdiff
lvremove: Revert to allowing removal of partial LVs.
authorPetr Rockai <prockai@redhat.com>
Wed, 26 Sep 2012 10:25:45 +0000 (12:25 +0200)
committerPetr Rockai <prockai@redhat.com>
Wed, 26 Sep 2012 15:26:23 +0000 (17:26 +0200)
tools/lvremove.c

index 2c5b317dffb1feceff6f812a0ac1c3ed6cc49eea..02521495f664398907543350ce1ba93cf68807fa 100644 (file)
@@ -26,12 +26,6 @@ static int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv,
         if (lv_is_cow(lv) && lv_is_virtual_origin(origin = origin_from_cow(lv)))
                 lv = origin;
 
-       if (lv->status & PARTIAL_LV) {
-               log_error("Not removing LV %s/%s because part or all of it is missing.",
-                         lv->vg->name, lv->name);
-               return ECMD_FAILED;
-       }
-
        if (!lv_remove_with_dependencies(cmd, lv, arg_count(cmd, force_ARG), 0)) {
                stack;
                return ECMD_FAILED;
This page took 0.031707 seconds and 5 git commands to generate.