3 # fsck.zfs: A fsck helper to accommodate distributions that expect
4 # to be able to execute a fsck on all filesystem types.
6 # This script simply bubbles up some already-known-about errors,
11 echo "Usage: $0 [options] dataset…" >&2
27 case "$(@sbindir@/zpool list -Ho health "$pool")" in
32 awk '!/^([[:space:]]*#.*)?$/ && $1 == "'"$dataset"'" && $3 == "zfs" {exit 1}' /etc
/fstab || \
36 # Pool not found, error printed by zpool(8)