[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240623121103.974270-7-hch@lst.de>
Date: Sun, 23 Jun 2024 14:10:35 +0200
From: Christoph Hellwig <hch@....de>
To: Zorro Lang <zlang@...nel.org>
Cc: fstests@...r.kernel.org,
"Theodore Ts'o" <tytso@....edu>,
linux-ext4@...r.kernel.org
Subject: [PATCH 6/8] generic/745: rework support fs checking
To prepare for deprecating _supported_fs use a case statement and
_notrun.
Signed-off-by: Christoph Hellwig <hch@....de>
---
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
Powered by blists - more mailing lists