]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
reflink: also treat EINVAL as not supported
authorChristoph Hellwig <hch@lst.de>
Sun, 7 Feb 2016 22:27:15 +0000 (09:27 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 7 Feb 2016 22:27:15 +0000 (09:27 +1100)
This can be returned by various implementations of the ioctl.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/reflink

index de8e56db46434e6b8d14d899a6595723752882a1..8638abaa81989fbb8f75ad087c3ef00a0f334197 100644 (file)
@@ -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
 }