Add _require_non_zoned_device calls to various XFS-specific tests.
Mostly this is because they force v4 file systems or other features
that can't work on zoned devices.
Signed-off-by: Christoph Hellwig <hch@lst.de>
grep -E -v 'bad user id 0xffffffff|bad group id 0xffffffff'
}
+# RT requires metadir (this needs a better check..)
+_require_non_zoned_device $SCRATCH_RTDEV
_require_scratch
_require_no_large_scratch_dev
_require_scratch
_scratch_xfs_force_no_metadir
+# zoned requires metadir.
+# XXX: this should probably go into _scratch_xfs_force_no_metadir
+_require_non_zoned_device $SCRATCH_RTDEV
+
_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
# By executing the followint tmp file, will get on the mkfs options stored in
_require_scratch_nocheck
_require_scratch_xfs_crc
+# zoned requires metadir and doesn't support old features
+_require_non_zoned_device $SCRATCH_RTDEV
+
# Does repair know how to add a particular feature to a filesystem?
check_repair_upgrade()
{
_require_realtime
_require_scratch
+# no extsize support on zoned file systems
+_require_non_zoned_device $SCRATCH_RTDEV
+
# Check mkfs.xfs option parsing with regards to rtinherit. XFS doesn't require
# the realtime volume to be present to set rtinherit, so it's safe to call the
# mkfs binary directly, in dry run mode, with exactly the parameters we want to
_require_scratch
+# zoned RT devices don't support rtextsize
+_require_non_zoned_device $SCRATCH_RTDEV
+
echo "Format and mount"
_scratch_mkfs -r extsize=7b | _filter_mkfs > $seqres.full 2>$tmp.mkfs
cat $tmp.mkfs >> $seqres.full
_require_scrub
_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_RTDEV
+
filter_scrub_errors() {
_filter_scratch | sed \
-e "s/offset $((fs_blksz * 2)) /offset 2FSB /g" \