1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00
systemd/extras
Ryan Harper 8741f2defa Add virtio-blk support to path_id
This patch adds a case handling path_id invoked on a virtio-blk device.
Currently path_id walks the parent path to virtio-pci but doesn't know
that it's the end of the path and exits without building the path (providing no
output resulting in no disk/by-path symlinks to virtio-blk devices).
This patch handles the virtio-pci path and updates the path accordingly.

/lib/udev/path_id --debug /block/vda
udev_device_new_from_syspath: device 0x2300120 has devpath '/devices/virtio-pci/virtio1/block/vda'
udev_device_new_from_syspath: device 0x2300380 has devpath '/devices/virtio-pci/virtio1'
udev_device_new_from_syspath: device 0x2300670 has devpath '/devices/virtio-pci'
ID_PATH=virtio-pci-virtio1

And with the current persistent-storage rules generates:

% ls -al /dev/disk/by-path | grep vda
lrwxrwxrwx. 1 root root   9 Jun  1 22:09 virtio-pci-virtio1 -> ../../vda

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2010-06-29 17:22:49 +02:00
..
ata_id remove a few comments in file headers 2010-06-21 16:56:17 +02:00
cdrom_id cdrom_id: do not export ID_CDROM_MEDIA_SESSION_LAST_OFFSET= for single session media 2010-05-25 09:47:04 +02:00
collect fix randonm findings from llvm-clang-analyzer 2009-09-08 22:11:04 +02:00
edd_id switch a few left-over from GPLv2 to GPLv2 or later 2010-06-25 11:39:21 +02:00
firmware configure.ac: ddd --with-firmware-path option 2010-04-20 07:02:58 +02:00
floppy switch a few left-over from GPLv2 to GPLv2 or later 2010-06-25 11:39:21 +02:00
fstab_import replace "add|change" with "!remove" 2010-04-12 16:52:41 +02:00
gudev Revert "add Vala vapi for gudev-1.0" 2010-06-13 10:08:22 +02:00
hid2hci Fix hid2hci rules harder 2010-06-11 15:14:55 +02:00
input_id input_id: include limits.h 2010-01-21 08:46:17 +01:00
keymap Fix stuck volume key presses for Toshiba Satellite U300 & U305models 2010-06-28 09:14:21 +02:00
mobile-action-modeswitch extras: mobile-action-modeswitch - update gitignore 2010-04-07 09:16:47 +02:00
mtd_probe make: pre-process and install systemd service files when needed 2010-06-25 10:30:55 +02:00
path_id Add virtio-blk support to path_id 2010-06-29 17:22:49 +02:00
rule_generator switch a few left-over from GPLv2 to GPLv2 or later 2010-06-25 11:39:21 +02:00
scsi_id switch a few left-over from GPLv2 to GPLv2 or later 2010-06-25 11:39:21 +02:00
udev-acl use the usual TAG+=, TAG= logic 2010-04-22 19:03:11 +02:00
usb_id switch a few left-over from GPLv2 to GPLv2 or later 2010-06-25 11:39:21 +02:00
usb-db usb-db: remove double '/' 2010-04-12 16:10:05 +02:00
v4l_id replace "add|change" with "!remove" 2010-04-12 16:52:41 +02:00