From: Christoph Hellwig Date: Sun, 7 Feb 2016 22:27:15 +0000 (+1100) Subject: reflink: also treat EINVAL as not supported X-Git-Tag: v2022.05.01~2657 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=06d19b018da203812d0b65944556ab832a07553d;p=xfstests-dev.git reflink: also treat EINVAL as not supported This can be returned by various implementations of the ioctl. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Dave Chinner --- diff --git a/common/reflink b/common/reflink index de8e56db..8638abaa 100644 --- a/common/reflink +++ b/common/reflink @@ -92,6 +92,8 @@ _require_test_dedupe() _notrun "Dedupe not supported by test filesystem type: $FSTYP" echo $testio | grep -q "Inappropriate ioctl for device" && \ _notrun "Dedupe not supported by test filesystem type: $FSTYP" + echo $testio | grep -q "Invalid argument" && \ + _notrun "Dedupe not supported by test filesystem type: $FSTYP" rm -rf "$TEST_DIR/file1" "$TEST_DIR/file2" } @@ -110,6 +112,8 @@ _require_scratch_dedupe() _notrun "Dedupe not supported by test filesystem type: $FSTYP" echo $testio | grep -q "Inappropriate ioctl for device" && \ _notrun "Dedupe not supported by test filesystem type: $FSTYP" + echo $testio | grep -q "Invalid argument" && \ + _notrun "Dedupe not supported by test filesystem type: $FSTYP" _scratch_unmount }