Commit 1ab5be5 remove unnecessary function

1 file Authored and Committed by lilin a year ago
remove unnecessary function

    
 1 @@ -66,12 +66,6 @@
 2   #    echo $wwid
 3   }
 4   
 5 - get_scsi_id()
 6 - {
 7 -     dev=$1
 8 -     wwid=$(/lib/udev/scsi_id --page=0x83 --whitelisted --device=$dev --replace-whitespace)
 9 -     echo $wwid
10 - }
11   
12   # make sure multipathd is running
13   get_mpath_disk_by_scsi_device()
14 @@ -127,15 +121,6 @@
15       trun "multipath -r"
16   }
17   
18 - clear_multipath()
19 - {
20 -     tlog "disable multipath and remove the mpath devices"
21 -     tlog "revert back the multipath.conf if has backup file"
22 -     test -f /etc/multipath.conf.storage_qe && cp /etc/multipath.conf.storage_qe /etc/multipath.conf &>/dev/null
23 -     ( multipath -q && multipath -F ) &>/dev/null
24 -     stop_multipathd
25 - }
26 - 
27   get_unused_mpath()
28   {
29       multipathd_running &>/dev/null || texit "multipathd is not running" 
30 @@ -150,7 +135,3 @@
31       echo $maps
32   }
33   
34 - stop_multipathd() {
35 -     tlog "stop multipathd"
36 -     ( pidof multipathd && service multipathd stop || pkill multipathd ) &>/dev/null
37 - }