_set_variable
}
-_wipe_fs()
-{
- _require_scratch
-
- _scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
- _scratch_mount >>$seqres.full
-}
-
#
# Cleanup created dirs and files
# Called by trap
echo "Creating directory system to dump using fsstress."
_count=$1
- _wipe_fs
_param="-f link=10 -f creat=10 -f mkdir=10 -f truncate=5 -f symlink=10"
rm -rf $dump_dir
_create_dumpdir_largefile()
{
- _wipe_fs
mkdir -p $dump_dir || _fail "cannot mkdir \"$dump_dir\""
_largesize=4294967297
_largefile=$dump_dir/largefile
_create_dumpdir_fill()
{
- _wipe_fs
_mk_fillconfig1
_do_create_dumpdir_fill
_stable_fs
_create_dumpdir_fill2()
{
- _wipe_fs
_mk_fillconfig2
_do_create_dumpdir_fill
_stable_fs
_create_dumpdir_fill_perm()
{
- _wipe_fs
_mk_fillconfig_perm
_do_create_dumpdir_fill
_stable_fs
_create_dumpdir_fill_ea()
{
- _wipe_fs
_mk_fillconfig_ea
_do_create_dumpdir_fill
_stable_fs
#
_create_dumpdir_fill_multi()
{
- _wipe_fs
_mk_fillconfig_multi
_do_create_dumpdir_fill
_stable_fs
_create_dumpdir_symlinks()
{
- _wipe_fs
_mk_symlink_config
_do_create_dump_symlinks
_stable_fs
_create_dumpdir_hardlinks()
{
_numsets=$1
- _wipe_fs
echo "Creating directory system of hardlinks to incrementally dump."
mkdir -p $dump_dir || _fail "cannot mkdir \"$dump_dir\""
_supported_fs xfs
_require_tape $TAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
# note: fsstress uses an endian dependent random number generator, running this
# will produce different output for big/little endian machines.
_supported_fs xfs
_require_tape $TAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_erase_hard
_do_dump_sub
_supported_fs xfs
_require_tape $TAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
# ensure file/dir timestamps precede dump timestamp
sleep 2
_supported_fs xfs
_require_tape $TAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_erase_hard
_do_dump_min
# real QA test starts here
_supported_fs xfs
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_do_dump_file
# real QA test starts here
_supported_fs xfs
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_do_dump_restore
# real QA test starts here
_supported_fs xfs
-
-# wipe test dir clean first
-# so dump can be real quick
-_wipe_fs
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
#
# Create 5 dumps
_supported_fs xfs
_require_tape $TAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_erase_hard
_do_dump -L $seq.1
_rewind
+_scratch_unmount
+
+_scratch_mkfs_xfs >>$seqres.full
+_scratch_mount
_create_dumpdir_fill2
_do_dump -L $seq.2
_do_restore -L $seq.2
_supported_fs xfs
_require_tape $RMT_IRIXTAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_erase_soft
_do_dump_min -o -F
_supported_fs xfs
_require_tape $RMT_TAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_erase_soft
_do_dump_min -o -F
_supported_fs xfs
_require_tape $RMT_TAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_erase_hard
_do_dump
_supported_fs xfs
_require_tape $RMT_IRIXTAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_erase_soft
_do_dump -o -F
# real QA test starts here
_supported_fs xfs
-_require_tape $TAPE_DEV
+_require_tape $TAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
_erase_hard
_do_dump_sub
# real QA test starts here
_supported_fs xfs
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_symlinks
_do_dump_file
# real QA test starts here
_supported_fs xfs
-
-# wipe test dir clean first
-# so dump can be real quick
-_wipe_fs
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
#
# Create 5 dumps
_supported_fs xfs
_require_tape $RMT_TAPE_USER@$RMT_IRIXTAPE_DEV
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
+
_create_dumpdir_fill
_erase_soft
_do_dump -o -F
# real QA test starts here
_supported_fs xfs
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill_perm
_do_dump_file
_supported_fs xfs
_require_multi_stream
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill_multi
_do_dump_multi_file --multi 4
_supported_fs xfs
_require_multi_stream
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill_multi
_do_dump_multi_file --multi 4
# real QA test starts here
_supported_fs xfs
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
# src/dumpfile based on dumping from
# _create_dumpdir_fill_perm (small dump)
_supported_fs xfs
_require_attrs trusted user
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
# create files with EAs
_create_dumpdir_fill_ea
# real QA test starts here
_supported_fs xfs
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_hardlinks 9
# files and directories
#
-_wipe_fs
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
mkdir -p $dump_dir || _fail "cannot mkdir \"$dump_dir\""
cd $dump_dir
# real QA test starts here
_supported_fs xfs
_require_test
+_require_scratch
_my_stat_filter()
{
_notrun "Installed libc doesn't correctly handle setrlimit/ftruncate64"
fi
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_largefile
echo "ls dumpdir/largefile"
stat $dump_dir/largefile | _my_stat_filter
# real QA test starts here
_supported_fs xfs
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_stress_num 4096
# real QA test starts here
_supported_fs xfs
+_require_scratch
$XFSDUMP_PROG -h 2>&1 | grep -q -e -D
if [ $? -ne 0 ]; then
_notrun "requires xfsdump -D"
fi
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
# ensure file/dir timestamps precede dump timestamp
sleep 2
biggg 41943040 $nobody $nobody 777 attr1 some_text1 root
End-of-File
- _wipe_fs
_do_create_dumpdir_fill
_stable_fs
}
_require_tape $TAPE_DEV
_require_attrs trusted
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_files
_erase_hard
bigg2 12582912 $nobody $nobody 777 attr2 some_text2 user
End-of-File
- _wipe_fs
_do_create_dumpdir_fill
_stable_fs
}
_require_tape $TAPE_DEV
_require_attrs trusted user
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_files
_erase_hard
# real QA test starts here
_supported_fs xfs
-
_require_legacy_v2_format
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
# real QA test starts here
_supported_fs xfs
-
_require_legacy_v2_format
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
# ensure file/dir timestamps precede dump timestamp
# real QA test starts here
_supported_fs xfs
-
_require_legacy_v2_format
+_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
_create_dumpdir_fill
# ensure file/dir timestamps precede dump timestamp
_require_scratch
_require_command "$SETCAP_PROG" setcap
_require_command "$GETCAP_PROG" getcap
-
-_wipe_fs
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
mkdir -p $dump_dir
echo test > $dump_dir/testfile
# Modify as appropriate.
_supported_fs xfs
_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
# Extended attributes
attr_name=attrname
# Modify as appropriate.
_supported_fs xfs
_require_scratch
+_scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+_scratch_mount
echo "Silence is golden."
-_wipe_fs
mkdir $dump_dir >> $seqres.full 2>&1 || _fail "mkdir \"$dump_dir\" failed"
for i in `seq 1 4`; do
$XFS_IO_PROG -f -c "truncate 1t" $dump_dir/sparsefile$i \