]> sourceware.org Git - lvm2.git/commitdiff
Re-enable partial activation of non-thin LVs until it can be fixed. (2.02.90)
authorAlasdair Kergon <agk@redhat.com>
Wed, 16 May 2012 12:50:14 +0000 (12:50 +0000)
committerAlasdair Kergon <agk@redhat.com>
Wed, 16 May 2012 12:50:14 +0000 (12:50 +0000)
- The test should be checking the LV as a whole, not just individual segments.

WHATS_NEW
lib/activate/dev_manager.c

index 03cb07dd7b30ad0fcac334a8e9a8a094afd13db0..c196468966abd8675e06d9a82be5c8c26a3b9ff2 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.96 - 
 ================================
+  Re-enable partial activation of non-thin LVs until it can be fixed. (2.02.90)
   Fix alloc cling to cling to PVs already found with contiguous policy.
   Fix cling policy not to behave like normal policy if no previous LV seg.
   Fix allocation loop not to use later policies when --alloc cling without tags.
index be99e8cfd34d57ec1a61387e062c0aee8ef116af..40b0edc8bc71c92ac9115ba6fac83483acf0aca6 100644 (file)
@@ -1581,22 +1581,6 @@ int add_areas_line(struct dev_manager *dm, struct lv_segment *seg,
                                  seg->lv->vg->name, seg->lv->name);
                        return 0;
                }
-
-               /*
-                * Mirrors activate LVs replaced with error targets and
-                * RAID can handle non-accessible sub-LVs.
-                *
-                * TODO: Can we eventually skip to activate such LVs ?
-                */
-               if (!num_existing_areas &&
-                   !strstr(seg->lv->name, "_rmeta_") &&
-                   !strstr(seg->lv->name, "_rimage_") &&
-                   !strstr(seg->lv->name, "_mimage_") &&
-                   !((name = strstr(seg->lv->name, "_mlog")) && !name[5])) {
-                       log_error("Cannot activate %s/%s: all segments missing.",
-                                 seg->lv->vg->name, seg->lv->name);
-                       return 0;
-               }
        }
 
        return 1;
This page took 0.043968 seconds and 5 git commands to generate.