shared,generic: move shared/006 to generic/

The shared/006 uses _scratch_mkfs_sized to create a limited size
file system, and then creates inodes until it gets ENOSPC, and then
checks to make sure the file system is consistent.  It then remounts
the file system, removes all of the files, and makes sure the file
system is consistent afterwards. This test was marked as only being
supported on ext[234] and xfs, and so it was in shared.

Now introduce a new _require_inode_limits() rule to run test on
filesystems that have a fixed inode number, then move the test to
generic.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Theodore Ts'o
2019-06-28 18:59:09 -04:00
committed by Eryu Guan
parent 6cbaba4a08
commit a9868eb48d
6 changed files with 13 additions and 7 deletions
+7
View File
@@ -3997,6 +3997,13 @@ _require_scratch_btime()
_scratch_unmount
}
_require_inode_limits()
{
if [ $(_get_free_inode $TEST_DIR) -eq 0 ]; then
_notrun "$FSTYP does not have a fixed number of inodes available"
fi
}
_require_filefrag_options()
{
_require_command "$FILEFRAG_PROG" filefrag
+3 -4
View File
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2014 Red Hat Inc. All Rights Reserved.
#
# FS QA Test No. shared/006
# FS QA Test No. generic/558
#
# Stress test fs by using up all inodes and check fs.
#
@@ -42,10 +42,9 @@ create_file()
. ./common/filter
# real QA test starts here
_supported_fs ext4 ext3 ext2 xfs
_supported_fs generic
_supported_os Linux
_require_scratch
_require_inode_limits
rm -f $seqres.full
echo "Silence is golden"
+2
View File
@@ -0,0 +1,2 @@
QA output created by 558
Silence is golden
+1
View File
@@ -560,3 +560,4 @@
555 auto quick cap
556 auto quick casefold
557 auto quick log
558 auto enospc
-2
View File
@@ -1,2 +0,0 @@
QA output created by 006
Silence is golden
-1
View File
@@ -4,7 +4,6 @@
# - comment line before each group is "new" description
#
002 auto metadata quick log
006 auto enospc
008 auto stress dedupe
009 auto stress dedupe
010 auto stress dedupe