Re: [PATCH v2 1/2] libmultipath: support host adapter name lookup for s390x ccw bus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2022-02-15 at 21:38 +0100, Martin Wilck wrote:
> 
> I was thinking about something like this (untested):
> 
> for (parent = udev_device_get_parent(hostdev); parent; 
>      parent = udev_device_get_parent(parent)) {
>       driver_name = udev_device_get_driver(parent);
>       if (driver_name && !strcmp(driver_name, "pcieport"))
>                break;
>       subsystem_name = udev_device_get_subsystem(parent);
>       if (subsystem_name && !strcmp(subsystem_name, "ccw"))
>                break;
> }
> if (!parent) {
>        udev_device_unref(hostdev);
>        return 1;
> }
> ...

So you did exactly that in your v3. Nice!

Martin


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/dm-devel





[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux