Rename wwidmap -> blkdevalias
authorBryn M. Reeves <bmr@redhat.com>
Wed, 31 Oct 2012 18:58:16 +0000 (18:58 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Wed, 31 Oct 2012 18:58:16 +0000 (18:58 +0000)
99-blkdevalias.rules [moved from 99-wwidmap.rules with 75% similarity]
README
blkdevalias [moved from wwidmap with 98% similarity]

similarity index 75%
rename from 99-wwidmap.rules
rename to 99-blkdevalias.rules
index 540ccad..35136c9 100644 (file)
@@ -1,5 +1,5 @@
 #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"
 #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"
 #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"
-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}"
-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}"
+KERNEL=="sd*[0-9]", PROGRAM="/sbin/scsi_id -g -u -d/dev/$parent" IMPORT="/sbin/blkdevalias map %c" SYMLINK+="$env{WM_NAME}" OWNER="$env{WM_OWNER}" GROUP="$env{WM_GROUP}"
+KERNEL=="sd*", PROGRAM="/sbin/scsi_id -g -u -dtempnode" IMPORT="/sbin/blkdevalias map %c" SYMLINK+="$env{WM_NAME}" OWNER="$env{WM_OWNER}" GROUP="$env{WM_GROUP}"
diff --git a/README b/README
index 49e1c06..cdd5a0c 100644 (file)
--- a/README
+++ b/README
@@ -1 +1 @@
-wwidmap is a tool to manage persistent storage device aliases and permissions
+blkdevalias is a tool to manage persistent storage device aliases and permissions
similarity index 98%
rename from wwidmap
rename to blkdevalias
index da58ccd..6fade5a 100755 (executable)
--- a/wwidmap
@@ -6,7 +6,7 @@ declare -A TYPEMAP
 WM_DEBUG=yes
 WM_DEFAULT_USER="oracle"
 WM_DEFAULT_GROUP="oracle"
-WM_CONF_PATH="/etc/wwidmap"
+WM_CONF_PATH="/etc/blkdevalias"
 WM_DEV_PATH="oracleasm/disks"
 WM_MAP_PATH="${WM_CONF_PATH}/map"
 WM_CONF="${WM_CONF_PATH}/conf"
@@ -221,7 +221,7 @@ wm_querydisk () {
         debug "wm_querydisk: DEV=\"$DEV\" MAJ=\"$MAJ\" MIN=\"$MIN\""
     fi
     if [ "$WWID" != "" ]; then
-        echo "$NNAME is a valid wwidmap disk$ONDEV"
+        echo "$NNAME is a valid blkdevalias disk$ONDEV"
         return
     fi
     exit 1