]> sourceware.org Git - lvm2.git/commitdiff
devs: recognize md devices in subsystem check
authorDavid Teigland <teigland@redhat.com>
Fri, 11 May 2018 19:00:19 +0000 (14:00 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 11 May 2018 19:00:19 +0000 (14:00 -0500)
If md components appear as duplicate PVs, let the
existing subsystem check recognize the md device.

lib/device/dev-type.c

index 8d4a4032d866d0b2d9547906ef863647e340578d..af4b407607e0882d570ff1bc21c2567382abb80a 100644 (file)
@@ -215,6 +215,9 @@ int dev_subsystem_part_major(struct dev_types *dt, struct device *dev)
        if (MAJOR(dev->dev) == dt->device_mapper_major)
                return 1;
 
+       if (MAJOR(dev->dev) == dt->md_major)
+               return 1;
+
        if (MAJOR(dev->dev) == dt->drbd_major)
                return 1;
 
This page took 0.034539 seconds and 5 git commands to generate.