@@ -149,6 +149,7 @@ export XFS_LOGPRINT_PROG="`set_prog_path xfs_logprint`"
export XFS_REPAIR_PROG="`set_prog_path xfs_repair`"
export XFS_DB_PROG="`set_prog_path xfs_db`"
export XFS_GROWFS_PROG=`set_prog_path xfs_growfs`
+export XFS_SPACEMAN_PROG="`set_prog_path xfs_spaceman`"
export XFS_SCRUB_PROG="`set_prog_path xfs_scrub`"
export XFS_PARALLEL_REPAIR_PROG="`set_prog_path xfs_prepair`"
export XFS_PARALLEL_REPAIR64_PROG="`set_prog_path xfs_prepair64`"
@@ -267,6 +267,12 @@ _check_quota_usage()
VFS_QUOTA=1
quotaon -f -u -g $SCRATCH_MNT 2>/dev/null
;;
+ xfs)
+ # Clear out speculative preallocations to eliminate them
+ # as a source of intermittent orig/checked differences.
+ test -x "$XFS_SPACEMAN_PROG" && \
+ "$XFS_SPACEMAN_PROG" -c 'prealloc -s' $SCRATCH_MNT
+ ;;
*)
;;
esac