[systemd-devel] udevd detect and list ata devices

Robert Milasan rmilasan at suse.com
Sun Dec 6 01:49:54 PST 2015


On Sun, 6 Dec 2015 01:49:41 +0100
"Marek" <mlf.conv at gmail.com> wrote:

> 
> 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

Try this examples: https://github.com/robertalks/udev-examples.git

Might help with what you are trying or give you an idea.

-- 
Robert Milasan

L3 Support Engineer
SUSE Linux (http://www.suse.com)
email: rmilasan at suse.com
GPG fingerprint: B6FE F4A8 0FA3 3040 3402  6FE7 2F64 167C 1909 6D1A


More information about the systemd-devel mailing list