Fix querydisk -d output
[blkdevalias.git] / 99-wwidmap.rules
1 #KERNEL=="sd*", PROGRAM="/sbin/scsi_id -g -u -d$tempnode", RESULT=="0QEMU_QEMU_HARDDISK_drive-scsi0-0-0", NAME="oracleasm/disks/DSK1", OWNER="oracle", GROUP="oracle"
2 #KERNEL=="sd*", PROGRAM="/sbin/scsi_id -g -u -d$tempnode", RESULT=="0QEMU_QEMU_HARDDISK_drive-scsi0-0-1", NAME="oracleasm/disks/DSK2", OWNER="oracle", GROUP="oracle"
3 #KERNEL=="sd*", PROGRAM="/sbin/scsi_id -g -u -d$tempnode", RESULT=="0QEMU_QEMU_HARDDISK_drive-scsi0-0-2", NAME="oracleasm/disks/DSK3", OWNER="oracle", GROUP="oracle"
4 KERNEL=="sd*[0-9]", PROGRAM="/sbin/scsi_id -g -u -d/dev/$parent" IMPORT="/sbin/wwidmap map %c" SYMLINK+="$env{WM_NAME}" OWNER="$env{WM_OWNER}" GROUP="$env{WM_GROUP}"
5 KERNEL=="sd*", PROGRAM="/sbin/scsi_id -g -u -dtempnode" IMPORT="/sbin/wwidmap map %c" SYMLINK+="$env{WM_NAME}" OWNER="$env{WM_OWNER}" GROUP="$env{WM_GROUP}"