Rename wwid add/del functions to match ba_ prefix
authorBryn M. Reeves <bmr@redhat.com>
Wed, 31 Oct 2012 20:07:55 +0000 (20:07 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Wed, 31 Oct 2012 20:07:55 +0000 (20:07 +0000)
blkdevalias

index a176ebb..6a2ddfd 100755 (executable)
@@ -69,13 +69,13 @@ ba_load_wwid_map() {
     done < $BA_MAP_PATH
 }
 
-# add_wwid_mapping <wwid> <nickname> <sd|mpath>
-add_wwid_mapping() {
+# ba_add_wwid_mapping <wwid> <nickname> <sd|mpath>
+ba_add_wwid_mapping() {
     local WWID
     WWID="$1"
     NNAME="$2"
     TYPE="$3"
-    debug "add_wwid_mapping WWID=\"$WWID\" NNAME=\"$NNAME\""
+    debug "ba_add_wwid_mapping WWID=\"$WWID\" NNAME=\"$NNAME\""
     if [ "$WWID" == "" ]; then
         warn "no wwid given"
         return
@@ -92,8 +92,8 @@ add_wwid_mapping() {
     TYPEMAP[$WWID]=${TYPE:-"sd"}
 }
 
-# del_wwid_mapping <wwid>
-del_wwid_mapping() {
+# ba_del_wwid_mapping <wwid>
+ba_del_wwid_mapping() {
     local WWID NNAME
     WWID="$1"
     if [ "$WWID" == "" ]; then
@@ -171,7 +171,7 @@ ba_createdisk () {
     fi
     debug "ba_createdisk: WWID=\"$WWID\" DEV=\"$DEV\" NNAME=\"$NNAME\""
     WWID=$(ba_scsi_id $DEV)
-    add_wwid_mapping $WWID $NNAME "sd"
+    ba_add_wwid_mapping $WWID $NNAME "sd"
     ba_store_wwid_map
 }
 
@@ -189,7 +189,7 @@ ba_deletedisk () {
         exit 2
     fi
     echo -n "Removing wwid map disk \"$NNAME\":"
-    del_wwid_mapping $WWID \
+    ba_del_wwid_mapping $WWID \
     && echo "                                  [  OK  ]"
     ba_store_wwid_map
 }