Blame SOURCES/0001-Fix-comparing-DM-RAID-member-devices-UUID.patch

940a02
From 2da13152619ee7233650339797657b45088b2219 Mon Sep 17 00:00:00 2001
940a02
From: Vojtech Trefny <vtrefny@redhat.com>
940a02
Date: Tue, 18 Aug 2020 09:44:29 +0200
940a02
Subject: [PATCH] dm: Fix comparing DM RAID member devices UUID
940a02
940a02
There is no "UUID" property in UDev we must use the "ID_FS_UUID"
940a02
one.
940a02
This comparison works only because most DM RAID members don't have
940a02
UUID so the check is skipped, but it fails for DDF RAID members
940a02
which have a special GUID/UUID in UDev database.
940a02
---
940a02
 src/plugins/dm.c | 2 +-
940a02
 1 file changed, 1 insertion(+), 1 deletion(-)
940a02
940a02
diff --git a/src/plugins/dm.c b/src/plugins/dm.c
940a02
index a6412028..4ab0d2a4 100644
940a02
--- a/src/plugins/dm.c
940a02
+++ b/src/plugins/dm.c
940a02
@@ -482,7 +482,7 @@ static gboolean raid_dev_matches_spec (struct raid_dev *raid_dev, const gchar *n
940a02
 
940a02
     context = udev_new ();
940a02
     device = udev_device_new_from_subsystem_sysname (context, "block", dev_name);
940a02
-    dev_uuid = udev_device_get_property_value (device, "UUID");
940a02
+    dev_uuid = udev_device_get_property_value (device, "ID_FS_UUID");
940a02
     major_str = udev_device_get_property_value (device, "MAJOR");
940a02
     minor_str = udev_device_get_property_value (device, "MINOR");
940a02