3 # Print out the type of device
6 if [ "$1" = "-h" ] ; then
7 echo "Show whether a vdev is a file, hdd, ssd, or iscsi."
11 # shellcheck disable=SC2154
12 if [ -b "$VDEV_UPATH" ]; then
13 device
="${VDEV_UPATH##*/}"
14 read -r val
2>/dev
/null
< "/sys/block/$device/queue/rotational"
21 vpd_pg83
="/sys/block/$device/device/vpd_pg83"
22 if [ -f "$vpd_pg83" ]; then
23 if grep -q --binary "iqn." "$vpd_pg83"; then
28 if [ -f "$VDEV_UPATH" ]; then