00-fsdev.sh: add warning about get_device_fstype() usage in ZFS scenarios

master
Fabio Erculiani 11 years ago
parent 6d808e8257
commit c32856dd84

@ -69,6 +69,9 @@ find_real_device() {
} }
get_device_fstype() { get_device_fstype() {
# This function expects a real or UUID=,LABEL= based reference
# that can be resolved to a real device node. Using this
# function in combination with ZFS may lead to unexpected behaviour.
local device=$(find_real_device "${1}") local device=$(find_real_device "${1}")
if [ -n "${device}" ]; then if [ -n "${device}" ]; then
blkid -o value -s TYPE "${device}" blkid -o value -s TYPE "${device}"

Loading…
Cancel
Save