_require_scratch_nocheck
_require_command "$XFS_ADMIN_PROG" "xfs_admin"
+
# Create some fake sparse files for testing external devices and whatnot
+fs_size=$((500 * 1024 * 1024))
+
fake_datafile=$TEST_DIR/$seq.scratch.data
rm -f $fake_datafile
-truncate -s 500m $fake_datafile
+truncate -s $fs_size $fake_datafile
fake_logfile=$TEST_DIR/$seq.scratch.log
rm -f $fake_logfile
-truncate -s 500m $fake_logfile
+truncate -s $fs_size $fake_logfile
fake_rtfile=$TEST_DIR/$seq.scratch.rt
rm -f $fake_rtfile
-truncate -s 500m $fake_rtfile
+truncate -s $fs_size $fake_rtfile
# Save the original variables
orig_ddev=$SCRATCH_DEV
}
check_label() {
- _scratch_mkfs -L oldlabel >> $seqres.full
+ MKFS_OPTIONS="-L oldlabel $MKFS_OPTIONS" _scratch_mkfs_sized $fs_size \
+ >> $seqres.full
_scratch_xfs_db -c label
_scratch_xfs_admin -L newlabel "$@" >> $seqres.full
_scratch_xfs_db -c label
_require_test_program "punch-alternating"
_require_xfs_io_error_injection "bmap_alloc_minlen_extent"
+fs_size=$((512 * 1024 * 1024))
+
for nrext64 in 0 1; do
echo "* Verify extent counter fields with nrext64=${nrext64} option"
- _scratch_mkfs -i nrext64=${nrext64} -d size=$((512 * 1024 * 1024)) \
+ MKFS_OPTIONS="-i nrext64=${nrext64} $MKFS_OPTIONS" _scratch_mkfs_sized $fs_size \
>> $seqres.full
_scratch_mount >> $seqres.full
_require_test_program "punch-alternating"
_require_xfs_io_error_injection "bmap_alloc_minlen_extent"
-_scratch_mkfs -d size=$((512 * 1024 * 1024)) >> $seqres.full
+_scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full
_scratch_mount >> $seqres.full
bsize=$(_get_file_block_size $SCRATCH_MNT)