dm: Fix comparing DM RAID member devices UUID
There is no "UUID" property in UDev we must use the "ID_FS_UUID"
one.
This comparison works only because most DM RAID members don't have
UUID so the check is skipped, but it fails for DDF RAID members
which have a special GUID/UUID in UDev database.
Vojtech Trefny
1 year, 7 months ago
481 | 481 | |
482 | 482 | context = udev_new (); |
483 | 483 | device = udev_device_new_from_subsystem_sysname (context, "block", dev_name); |
484 | dev_uuid = udev_device_get_property_value (device, "UUID"); | |
484 | dev_uuid = udev_device_get_property_value (device, "ID_FS_UUID"); | |
485 | 485 | major_str = udev_device_get_property_value (device, "MAJOR"); |
486 | 486 | minor_str = udev_device_get_property_value (device, "MINOR"); |
487 | 487 |