]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs: handle internal rtdev in the _require_ helpers xfs-zoned-2024-11-18
authorChristoph Hellwig <hch@lst.de>
Thu, 31 Oct 2024 17:58:23 +0000 (18:58 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 5 Nov 2024 08:32:03 +0000 (09:32 +0100)
.. and add it to a few more tests where it matters for the main device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
common/xfs
tests/xfs/311
tests/xfs/438
tests/xfs/449
tests/xfs/524
tests/xfs/556

index 49c5af8e5af91091244e5590acfdb9d25356c48e..8606c603595df41b36f509f492306f9f586738d2 100644 (file)
@@ -2067,6 +2067,7 @@ _scratch_xfs_force_no_metadir()
 # do not run on zoned file systems
 _require_scratch_non_zoned()
 {
+       _require_non_zoned_device $SCRATCH_DEV
        if [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_RTDEV" ]; then
                _require_non_zoned_device $SCRATCH_RTDEV
 
index 8b806fc29eb1e9f0b723ef2df2326e53f13fd4fb..e8fc547cc4b4dfb3073cb547f2f4a379ab54aaa8 100755 (executable)
@@ -30,6 +30,9 @@ _cleanup()
 _require_scratch
 _require_dm_target delay
 
+# The dm-delay map added by this test doesn't work on zoned devices
+_require_non_zoned_device $SCRATCH_DEV
+
 echo "Silence is golden."
 
 _scratch_mkfs_xfs >> $seqres.full 2>&1
index 0239778c5121449eb776ac3624a0b90347453dfb..fa74b1403604673d7a703468f7bbdfeb070b79d7 100755 (executable)
@@ -96,6 +96,13 @@ _require_user
 _require_xfs_quota
 _require_freeze
 
+#
+# The dm-flakey map added by this test doesn't work on zoned devices
+# because table sizes need to be aligned to the zone size.
+#
+_require_non_zoned_device $SCRATCH_DEV
+_require_non_zoned_device $SCRATCH_RTDEV
+
 echo "Silence is golden"
 
 _scratch_mkfs > $seqres.full 2>&1
index a739df50e319c5708040712888ddca0408031711..86ded1960816a959a86ca9b8e51199551e2bdfc7 100755 (executable)
@@ -12,9 +12,11 @@ _begin_fstest auto quick
 # Import common functions.
 . ./common/filter
 
-
 _require_scratch_nocheck
 
+# can't grow data volume on mixed configs
+_require_scratch_non_zoned
+
 # Geometry printing wasn't unified until xfs_spaceman grew an 'info'
 # command, so skip this test if there is no spaceman or it doesn't
 # know what 'info' is.
index ef47a8461bf724b9b77c14d6265ed32658f4accd..a311e2e8a2509750a574dbfd7e220f768392674f 100755 (executable)
@@ -25,6 +25,9 @@ _require_test
 _require_scratch_nocheck
 _require_xfs_mkfs_cfgfile
 
+# reflink currently not supported for zoned devices
+_require_non_zoned_device $SCRATCH_DEV
+
 echo "Silence is golden"
 
 def_cfgfile=$TEST_DIR/a
index 17100ea19a69b9e6896e29d0455d64e2019b324d..0dfcbc5b779d4e08f82cdff9c50673e97f6cb9b7 100755 (executable)
@@ -32,6 +32,7 @@ _require_dm_target error
 # The dm-error map added by this test doesn't work on zoned devices
 # because table sizes need to be aligned to the zone size.
 #
+_require_non_zoned_device $SCRATCH_DEV
 _require_non_zoned_device $SCRATCH_RTDEV
 
 filter_scrub_errors() {