From b5d99146282d2747b96d37efb5d2a7dc02fa6327 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Fri, 11 May 2018 14:00:19 -0500 Subject: devs: recognize md devices in subsystem check If md components appear as duplicate PVs, let the existing subsystem check recognize the md device. --- lib/device/dev-type.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/device/dev-type.c b/lib/device/dev-type.c index 8d4a4032d..af4b40760 100644 --- a/lib/device/dev-type.c +++ b/lib/device/dev-type.c @@ -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; -- cgit v1.2.1