]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/220: do not run async discard test on zoned device
authorNaohiro Aota <naohiro.aota@wdc.com>
Fri, 18 Aug 2023 02:03:25 +0000 (11:03 +0900)
committerZorro Lang <zlang@kernel.org>
Fri, 18 Aug 2023 18:49:46 +0000 (02:49 +0800)
The mount option "discard=async" is not meant to be used on the zoned mode.
Skip it from the test.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/220

index 30ca06f6038ddde4fedf5983277b276ba296d8d3..b092f40bc1e001059ca0783b385c6775911c76c1 100755 (executable)
@@ -279,7 +279,9 @@ test_revertible_options()
        test_should_fail "discard=invalid"
        if [ "$enable_discard_sync" = true ]; then
                test_roundtrip_mount "discard" "discard" "discard=sync" "discard"
-               test_roundtrip_mount "discard=async" "discard=async" "discard=sync" "discard"
+               if ! _scratch_btrfs_is_zoned; then
+                       test_roundtrip_mount "discard=async" "discard=async" "discard=sync" "discard"
+               fi
                test_roundtrip_mount "discard=sync" "discard" "nodiscard" "$DEFAULT_NODISCARD_OPTS"
        else
                test_roundtrip_mount "discard" "discard" "discard" "discard"