Rename WM_ and wm_ prefixes to BA_ and ba_
[blkdevalias.git] / 99-blkdevalias.rules
1 KERNEL=="sd*[^0-9]" ENV{DEVTYPE}=="disk" \
2     PROGRAM="/sbin/scsi_id -g -u -d$tempnode" \
3     IMPORT="/sbin/blkdevalias map %c" \
4     SYMLINK+="$env{BA_NAME}" OWNER="$env{BA_USER}" GROUP="$env{BA_GROUP}"
5
6 KERNEL=="sd*[1-9]*" ENV{DEVTYPE}=="partition" \
7     PROGRAM="/sbin/scsi_id -g -u -d/dev/$parent" \
8     IMPORT="/sbin/blkdevalias map %c" \
9     SYMLINK+="$env{BA_NAME}" OWNER="$env{BA_USER}" GROUP="$env{BA_GROUP}" \
10     OPTIONS+={link_priority=5}
11
12 KERNEL=="dm*" ENV{DM_UUID}=="mpath*" \
13     PROGRAM="/sbin/scsi_id -g -u -d$tempnode" \
14     IMPORT="/sbin/blkdevalias map %c" \
15     SYMLINK+="$env{BA_NAME}" OWNER="$env{BA_USER}" GROUP="$env{BA_GROUP}" \
16     OPTIONS+="link_priority=10"
17
18 KERNEL=="dm*" ENV{DM_UUID}=="part*mpath*" \
19     PROGRAM="/sbin/scsi_id -g -u -d/dev/$parent" \
20     IMPORT="/sbin/blkdevalias map %c" \
21     SYMLINK+="$env{BA_NAME}" OWNER="$env{BA_USER}" GROUP="$env{BA_GROUP}" \
22     OPTIONS+="link_priority=15"