diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-05-12 00:52:52 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:35:17 -0700 |
commit | cde5a756ce10530136b8d387346c48260a69dbfb (patch) | |
tree | 332d0d499fdad63e5b9ed57e8364e0fe9dcc2a0f /extras/volume_id/s390-dasd.rules | |
parent | 7f639ff99e3857870e4e0f41843dff7ad48ad784 (diff) |
[PATCH] udev_volume_id update
Here is a update to extras/volume_id/*
o The device is now specified by the DEVPATH in the environment,
it's no longer needed to pass the major/minor to the callout.
o leading spaces and slashes are now removed from the returned string
and spaces are replaced by underscore, to not to confuse udev.
o Arnd Bergmann <arnd@arndb.de> provided the code to recognize s390
dasd disk labels. The -d switch tries to read the main block device
instead of the partition.
Diffstat (limited to 'extras/volume_id/s390-dasd.rules')
-rw-r--r-- | extras/volume_id/s390-dasd.rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/volume_id/s390-dasd.rules b/extras/volume_id/s390-dasd.rules new file mode 100644 index 0000000000..a870d87e04 --- /dev/null +++ b/extras/volume_id/s390-dasd.rules @@ -0,0 +1,7 @@ +# s390 block devices named by disk label +KERNEL="dasd*[a-z]", PROGRAM="/sbin/udev_volume_id -d -l" RESULT="[0-9A-Z]*", SYMLINK="dasd/%c/disc dasd/%b/disc" +KERNEL="dasd*[0-9]", PROGRAM="/sbin/udev_volume_id -d -l" RESULT="[0-9A-Z]*", SYMLINK="dasd/%c/part%n dasd/%b/part%n" +KERNEL="dasd*[a-z]", SYMLINK="dasd/%b/disc" +KERNEL="dasd*[0-9]", SYMLINK="dasd/%b/part%n" +KERNEL="dcssblk*", NAME="%k", SYMLINK="dcssblk/%b" + |