diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-06 16:07:06 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-06 16:07:06 +0200 |
commit | 185ea6a76d3f3a9e9708239d2302bd98e00460fa (patch) | |
tree | 12bc12b85ec1558cf0139b8ede81d399bf32b44a /rules/rules.d/60-persistent-storage.rules | |
parent | 4950b6e6a8c298085a8c135393cfa8649644f7c9 (diff) |
path_id: implement in C using libudev
Diffstat (limited to 'rules/rules.d/60-persistent-storage.rules')
-rw-r--r-- | rules/rules.d/60-persistent-storage.rules | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/rules.d/60-persistent-storage.rules b/rules/rules.d/60-persistent-storage.rules index e47cf21571..b39ea03321 100644 --- a/rules/rules.d/60-persistent-storage.rules +++ b/rules/rules.d/60-persistent-storage.rules @@ -47,7 +47,9 @@ KERNEL=="mspblk[0-9]", SUBSYSTEMS=="memstick", ATTRS{name}=="?*", ATTRS{serial}= KERNEL=="mspblk[0-9]p[0-9]", ENV{ID_NAME}=="?*", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/memstick-$env{ID_NAME}_$env{ID_SERIAL}-part%n" # by-path (parent device path) -ENV{DEVTYPE}=="disk", DEVPATH!="*/virtual/*", IMPORT{program}="path_id %p" +# old shell script for fc, sas, iscsi, s390, ide +ENV{DEVTYPE}=="disk", DEVPATH=="*/css0/*|*/rport-[0-9]*|*/end_device-*|*/session[0-9]*|*/ide[0-9]*", IMPORT{program}="path_id.sh %p" +ENV{DEVTYPE}=="disk", ENV{ID_PATH}=="", DEVPATH!="*/virtual/*", IMPORT{program}="path_id %p" ENV{DEVTYPE}=="disk", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}" ENV{DEVTYPE}=="partition", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n" |