[PATCH 6/8] generic/745: rework support fs checking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To prepare for deprecating _supported_fs use a case statement and
_notrun.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
 tests/generic/745 | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/tests/generic/745 b/tests/generic/745
index 0f47f9c69..bed43578a 100755
--- a/tests/generic/745
+++ b/tests/generic/745
@@ -27,16 +27,21 @@ _cleanup()
 . ./common/dmflakey
 . ./common/attr
 
-# real QA test starts here
+_require_scratch
+_require_dm_target flakey
+_require_attrs
 
 # We create a lot of xattrs for a single file. Only btrfs and xfs are currently
 # able to store such a large mount of xattrs per file, other filesystems such
 # as ext3/4 and f2fs for example, fail with ENOSPC even if we attempt to add
 # less than 1000 xattrs with very small values.
-_supported_fs btrfs xfs
-_require_scratch
-_require_dm_target flakey
-_require_attrs
+case "$FSTYP" in
+btrfs|xfs)
+	;;
+*)
+	_notrun "Requires support for > 1000 xattrs"
+	;;
+esac
 
 _scratch_mkfs >> $seqres.full 2>&1
 _require_metadata_journaling $SCRATCH_DEV
-- 
2.43.0





[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux