On Fri, Jan 07, 2011 at 02:04:15PM +0100, Ales Kozumplik wrote: > On 01/06/2011 05:24 PM, David Lehman wrote: > >Please do use udev_device_is_dm_mpath instead of adding another function > >to do the same thing. I forgot that function had made it to > >rhel6-branch. > > > >Dave > > I said yesterday this is good, but now I've found one more thing we > need to address first. I can not use udev_device_is_dm_mpath to test > for a partition of an mpath device, the function uses > udev_device_dm_subsystem_match() that looks at the first field in > DM_UUID which is like "mpath-2003013842bcb000c" for multipath > devices but "part1-mpath-2003013842bcb000c" for multipath > partitions. > > I could workaround this on rhel6 branch where there still is the > disgraceful udev_device_is_multipath_partition(), but then I'd hit > the problem on master where the function was removed. > > I am thinking about solving this by adding a parameter to > ude_device_dm_subsystem_match() that will make it skip the first > DM_UUID field if it was 'part\d+'. FYI, this is related to rhbz#634771, so a special check for ^part\d+ is valid for RHEL but not Fedora. -- Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
Attachment:
pgp4ijQDsbVP6.pgp
Description: PGP signature
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list