Implement "wwidmap querydisk" to print the same information as the
oracleasm equivalent.
+ local LISTDEV ONDEV WWID NNAME
+ if [ $1 == "-d" ]; then
+ LISTDEV=1
+ shift
+ fi
+ NNAME=$1
+ if [ "$NNAME" == "" ]; then
+ echo "Usage: $0 querydisk <nickname>"
+ exit 2
+ fi
+ WWID=${NAMEMAP[$NNAME]}
+ if [ "$LISTDEV" == "1" ]; then
+ DEV="/dev/$WM_DEV_PATH/$(readlink "/dev/$WM_DEV_PATH/$NNAME")"
+ ONDEV="on device $(stat --format "[%t, %T]" $DEV)"
+ fi
+ if [ "$WWID" != "" ]; then
+ echo "$NNAME is a valid wwidmap disk$ONDEV"
+ return
+ fi
+ exit 1
wm_list_disks
;;
querydisk)
wm_list_disks
;;
querydisk)
;;
scandisks)
wm_scandisks
;;
scandisks)
wm_scandisks