thanks Robert, eample2 does list all disks but doens't differentiate between ata and usb.
On Sun, Dec 6, 2015 at 10:49 AM, Robert Milasan <[email protected]> wrote: > On Sun, 6 Dec 2015 01:49:41 +0100 > "Marek" <[email protected]> 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: [email protected] > GPG fingerprint: B6FE F4A8 0FA3 3040 3402 6FE7 2F64 167C 1909 6D1A > _______________________________________________ > systemd-devel mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/systemd-devel _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
