> /sys/ > And "ata" devices are not the same thing as a "usb" device is in any way > or form, so the fact that they have to be shown differently is totally > natural. You can iterate over them, you just have to find the correct > class that the kernel uses for them ("ata_device"), but there is no "ata > bus" so you will have to search for them differently.
udev_device_get_sysname(block) /sys/devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda /sys/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host8/target8:0:0/8:0:0:0/block/sdg tried udev_device_get_parent_with_subsystem_devtype(scsi, "ata_device", NULL); but it gives me nothing > > good luck! > > greg k-h _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel