mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic: relocate log recovery tests into tests/generic/
This patch moves the generic testcases defined in xfs into tests/generic/. xfs/085 -> generic/052 xfs/086 -> generic/054 xfs/087 -> generic/055 Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
72d0a11c31
commit
dd8a4b3dfe
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FS QA Test No. 085
|
# FS QA Test No. 052
|
||||||
#
|
#
|
||||||
# To test log replay by shutdown of file system
|
# To test log replay by shutdown of file system
|
||||||
# This is the first simple initial test to ensure that
|
# This is the first simple initial test to ensure that
|
||||||
@@ -40,7 +40,7 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
|
|||||||
. ./common/log
|
. ./common/log
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os IRIX Linux
|
_supported_os IRIX Linux
|
||||||
|
|
||||||
rm -f $seqres.full
|
rm -f $seqres.full
|
||||||
@@ -51,7 +51,7 @@ _require_scratch_shutdown
|
|||||||
_require_logstate
|
_require_logstate
|
||||||
|
|
||||||
echo "mkfs"
|
echo "mkfs"
|
||||||
_scratch_mkfs_xfs >>$seqres.full 2>&1 \
|
_scratch_mkfs >>$seqres.full 2>&1 \
|
||||||
|| _fail "mkfs scratch failed"
|
|| _fail "mkfs scratch failed"
|
||||||
|
|
||||||
echo "mount"
|
echo "mount"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
QA output created by 085
|
QA output created by 052
|
||||||
mkfs
|
mkfs
|
||||||
mount
|
mount
|
||||||
touch files
|
touch files
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FS QA Test No. 086
|
# FS QA Test No. 054
|
||||||
#
|
#
|
||||||
# To test log replay with version 2 logs
|
# To test log replay with version 2 logs
|
||||||
# Initially keep this simple with just creates.
|
# Initially keep this simple with just creates.
|
||||||
@@ -39,14 +39,13 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
|
|||||||
. ./common/log
|
. ./common/log
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os IRIX Linux
|
_supported_os IRIX Linux
|
||||||
|
|
||||||
rm -f $seqres.full $tmp.*
|
rm -f $seqres.full $tmp.*
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_logstate
|
_require_logstate
|
||||||
_require_v2log
|
|
||||||
|
|
||||||
echo "*** init FS"
|
echo "*** init FS"
|
||||||
umount $SCRATCH_DEV >/dev/null 2>&1
|
umount $SCRATCH_DEV >/dev/null 2>&1
|
||||||
@@ -56,14 +55,14 @@ _get_log_configs > $tmp.seq.params
|
|||||||
# Do the work for various log params which
|
# Do the work for various log params which
|
||||||
# should not effect the data content of the log
|
# should not effect the data content of the log
|
||||||
# Try with and without sync'ing - sync'ing will mean that
|
# Try with and without sync'ing - sync'ing will mean that
|
||||||
# the log will be written out unfilled and thus the log
|
# the log will be written out unfilled and thus the log
|
||||||
# stripe can have an effect.
|
# stripe can have an effect.
|
||||||
#
|
#
|
||||||
for s in sync nosync ; do
|
for s in sync nosync ; do
|
||||||
cat $tmp.seq.params \
|
cat $tmp.seq.params \
|
||||||
| while read mkfs mnt restofline
|
| while read mkfs mnt restofline
|
||||||
do
|
do
|
||||||
if [ "$mkfs" = "#" ]; then
|
if [ "$mkfs" = "#" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -73,8 +72,8 @@ for s in sync nosync ; do
|
|||||||
|
|
||||||
# mkfs the FS
|
# mkfs the FS
|
||||||
_echofull "mkfs"
|
_echofull "mkfs"
|
||||||
_scratch_mkfs_xfs >>$seqres.full 2>&1
|
_scratch_mkfs >>$seqres.full 2>&1
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
_echofull "mkfs failed: $MKFS_OPTIONS"
|
_echofull "mkfs failed: $MKFS_OPTIONS"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
@@ -89,7 +88,7 @@ for s in sync nosync ; do
|
|||||||
# create the metadata
|
# create the metadata
|
||||||
if [ $s = "sync" ]; then
|
if [ $s = "sync" ]; then
|
||||||
# generate some log traffic - but not too much
|
# generate some log traffic - but not too much
|
||||||
# add some syncs to get the log flushed to disk
|
# add some syncs to get the log flushed to disk
|
||||||
for file in $SCRATCH_MNT/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}; do
|
for file in $SCRATCH_MNT/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}; do
|
||||||
touch $file
|
touch $file
|
||||||
sync
|
sync
|
||||||
@@ -137,5 +136,5 @@ for s in sync nosync ; do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
QA output created by 086
|
QA output created by 054
|
||||||
*** init FS
|
*** init FS
|
||||||
|
|
||||||
*** mkfs ***
|
*** mkfs ***
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FS QA Test No. 087
|
# FS QA Test No. 055
|
||||||
#
|
#
|
||||||
# * like 086 but want to create more/different kinds of metadata
|
# * like 054 but want to create more/different kinds of metadata
|
||||||
# and so will use fsstress
|
# and so will use fsstress
|
||||||
# * also can interrupt metadata with godown
|
# * also can interrupt metadata with godown
|
||||||
#
|
#
|
||||||
@@ -66,14 +66,13 @@ _get_quota_option()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs
|
_supported_fs generic
|
||||||
_supported_os IRIX Linux
|
_supported_os IRIX Linux
|
||||||
|
|
||||||
rm -f $seqres.full $tmp.*
|
rm -f $seqres.full $tmp.*
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_scratch_shutdown
|
_require_scratch_shutdown
|
||||||
_require_logstate
|
_require_logstate
|
||||||
_require_v2log
|
|
||||||
|
|
||||||
QUOTA_OPTION=`_get_quota_option`
|
QUOTA_OPTION=`_get_quota_option`
|
||||||
|
|
||||||
@@ -85,7 +84,7 @@ _get_log_configs > $tmp.seq.params
|
|||||||
cat $tmp.seq.params \
|
cat $tmp.seq.params \
|
||||||
| while read mkfs mnt restofline
|
| while read mkfs mnt restofline
|
||||||
do
|
do
|
||||||
if [ "$mkfs" = "#" ]; then
|
if [ "$mkfs" = "#" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -95,8 +94,8 @@ do
|
|||||||
|
|
||||||
# mkfs the FS
|
# mkfs the FS
|
||||||
_echofull "mkfs"
|
_echofull "mkfs"
|
||||||
_scratch_mkfs_xfs >>$seqres.full 2>&1
|
_scratch_mkfs >>$seqres.full 2>&1
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
_echofull "mkfs failed: $MKFS_OPTIONS"
|
_echofull "mkfs failed: $MKFS_OPTIONS"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
@@ -152,5 +151,5 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
status=0
|
status=0
|
||||||
exit
|
exit
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
QA output created by 087
|
QA output created by 055
|
||||||
*** init FS
|
*** init FS
|
||||||
|
|
||||||
*** mkfs ***
|
*** mkfs ***
|
||||||
@@ -54,7 +54,10 @@
|
|||||||
049 metadata rw auto
|
049 metadata rw auto
|
||||||
050 mount auto quick
|
050 mount auto quick
|
||||||
051 auto stress log metadata repair
|
051 auto stress log metadata repair
|
||||||
|
052 log auto quick
|
||||||
053 acl repair auto quick
|
053 acl repair auto quick
|
||||||
|
054 log v2log auto
|
||||||
|
055 log v2log auto quota stress
|
||||||
062 attr udf auto quick
|
062 attr udf auto quick
|
||||||
068 other auto freeze dangerous stress
|
068 other auto freeze dangerous stress
|
||||||
069 rw udf auto quick
|
069 rw udf auto quick
|
||||||
|
|||||||
@@ -75,9 +75,6 @@
|
|||||||
081 deprecated # log logprint quota
|
081 deprecated # log logprint quota
|
||||||
082 deprecated # log logprint v2log
|
082 deprecated # log logprint v2log
|
||||||
084 ioctl rw auto
|
084 ioctl rw auto
|
||||||
085 log auto quick
|
|
||||||
086 log v2log auto
|
|
||||||
087 log v2log auto quota stress
|
|
||||||
090 rw auto
|
090 rw auto
|
||||||
092 other auto quick
|
092 other auto quick
|
||||||
094 metadata dir ioctl auto
|
094 metadata dir ioctl auto
|
||||||
|
|||||||
Reference in New Issue
Block a user