mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Dave Chinner
parent
3cca5094d6
commit
06d19b018d
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user