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