]>
git.proxmox.com Git - mirror_zfs.git/blob - cmd/zpool/zpool.d/media
3 # Print out the type of device
6 if [ "$1" = "-h" ] ; then
7 echo "Show whether a vdev is a file, hdd, or ssd."
11 if [ -b "$VDEV_UPATH" ]; then
12 device
=$
(basename "$VDEV_UPATH")
13 val
=$
(cat "/sys/block/$device/queue/rotational" 2>/dev
/null
)
14 if [ "$val" = "0" ]; then
18 if [ "$val" = "1" ]; then
22 if [ -f "$VDEV_UPATH" ]; then