Add ChangeLog to version control
[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*" \
19     IMPORT="/sbin/mpath-parent $env{DM_NAME}"
20
21 KERNEL=="dm*" ENV{DM_UUID}=="part*" \
22     PROGRAM="/sbin/scsi_id -g -u -d/dev/mapper/$env{DM_PARENT}" \
23     IMPORT="/sbin/blkdevalias map %c" \
24     SYMLINK+="$env{BA_NAME}" OWNER="$env{BA_USER}" GROUP="$env{BA_GROUP}" \
25     OPTIONS+="link_priority=15"