+check_fsfacet() {
+ local facet=$1
+ local fstype=$(facet_fstype $facet)
+
+ case $fstype in
+ ldiskfs)
+ run_e2fsck $(facet_active_host $facet) $(facet_device $facet) \
+ "-y" || error "run e2fsck error"
+ ;;
+ zfs)
+ # Could call fsck.zfs, but currently it does nothing,
+ # Could also call zpool scrub, but that could take a LONG time
+ # do_facet $facet "fsck.zfs $(facet_device $facet)"
+ ;;
+ esac
+}
+