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