]> sourceware.org Git - lvm2.git/commitdiff
o check for orphaned pv's when reading
authorJoe Thornber <thornber@redhat.com>
Wed, 10 Oct 2001 12:28:10 +0000 (12:28 +0000)
committerJoe Thornber <thornber@redhat.com>
Wed, 10 Oct 2001 12:28:10 +0000 (12:28 +0000)
lib/format1/disk-rep.c

index e93d7afc7e9f4410be72f81a585c12fe3c24905d..3ff929841a9066c407c3a2517d5646fc258d12ec 100644 (file)
@@ -240,6 +240,12 @@ struct disk_list *read_pv(struct device *dev, struct pool *mem,
                goto bad;
        }
 
+       /*
+        * is it an orphan ?
+        */
+       if (data->pv.vg_name == '\0')
+               return 1;
+
        if (vg_name && strcmp(vg_name, data->pv.vg_name)) {
                log_info("%s is not a member of the vg '%s'",
                         dev->name, vg_name);
This page took 0.034372 seconds and 5 git commands to generate.