_check_scratch_fs()
{
+ device=$SCRATCH_DEV
+ [ $# -eq 1 ] && device=$1
+
case $FSTYP in
xfs)
SCRATCH_LOG="none"
[ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_RTDEV" ] && \
SCRATCH_RT="$SCRATCH_RTDEV"
- _check_xfs_filesystem $SCRATCH_DEV $SCRATCH_LOG $SCRATCH_RT
+ _check_xfs_filesystem $device $SCRATCH_LOG $SCRATCH_RT
;;
udf)
- _check_udf_filesystem $SCRATCH_DEV $udf_fsize
+ _check_udf_filesystem $device $udf_fsize
;;
nfs*)
# Don't know how to check an NFS filesystem, yet.
;;
btrfs)
- _check_btrfs_filesystem $SCRATCH_DEV
+ _check_btrfs_filesystem $device
;;
*)
- _check_generic_filesystem $SCRATCH_DEV
+ _check_generic_filesystem $device
;;
esac
}
#Unmount and fsck to make sure we got a valid fs after replay
_unmount_flakey
- _check_scratch_fs
+ _check_scratch_fs $FLAKEY_DEV
[ $? -ne 0 ] && _fatal "fsck failed"
_mount_flakey