Lines Matching refs:device

29 	ls /sys/block/${disk}/device/scsi_device | cut -d : -f 1
68 # Check if the given device is physical device
70 function is_physical_device #device
72 typeset device=${1#$DEV_DSKDIR}
73 device=${device#$DEV_RDSKDIR}
76 [[ -b "$DEV_DSKDIR/$device" ]] && \
80 echo $device | egrep "^c[0-F]+([td][0-F]+)+$" > /dev/null 2>&1
86 # Check if the given device is a real device (ie SCSI device)
101 # Check if the given device is a loop device
116 # Check if the given device is a multipath device and if there is a symbolic
117 # link to a device mapper and to a disk
138 # on whether the device is a real, multipath, or loop device.
169 # checks first disk to determine device directory
172 # multipath device = /dev/mapper (linux)
197 # Get the directory path of given device
199 function get_device_dir #device
201 typeset device=$1
203 if ! $(is_physical_device $device) ; then
204 if [[ $device != "/" ]]; then
205 device=${device%/*}
207 if [[ -b "$DEV_DSKDIR/$device" ]]; then
208 device="$DEV_DSKDIR"
210 echo $device
219 function get_persistent_disk_name #device
221 typeset device=$1
225 if is_real_device $device; then
226 dev_id="$(udevadm info -q all -n $DEV_DSKDIR/$device \
230 elif is_mpath_device $device; then
231 dev_id="$(udevadm info -q all -n $DEV_DSKDIR/$device \
237 echo $device
240 echo $device
271 slave_dir+="/slaves/${slave}/device"
289 dev_state="/sys/block/$disk/device/state"
290 dev_delete="/sys/block/$disk/device/delete"
418 # Get scsi_debug device name.
419 # Returns basename of scsi_debug device (for example "sdb").