reflink: also treat EINVAL as not supported

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>
This commit is contained in:
Christoph Hellwig
2016-02-08 09:27:15 +11:00
committed by Dave Chinner
parent 3cca5094d6
commit 06d19b018d
+4
View 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
}