mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/reflink: actually test dedupe on scratch device
In _require_scratch_dedupe, test the scratch device, not the testdev. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
c85204b430
commit
2f8d7b2ff0
+1
-1
@@ -107,7 +107,7 @@ _require_scratch_dedupe()
|
||||
_scratch_mount
|
||||
"$XFS_IO_PROG" -f -c "pwrite -S 0x61 0 65536" "$SCRATCH_MNT/file1" > /dev/null
|
||||
"$XFS_IO_PROG" -f -c "pwrite -S 0x61 0 65536" "$SCRATCH_MNT/file2" > /dev/null
|
||||
testio="$("$XFS_IO_PROG" -f -c "dedupe $TEST_DIR/file1 0 0 65536" "$TEST_DIR/file2" 2>&1)"
|
||||
testio="$("$XFS_IO_PROG" -f -c "dedupe $SCRATCH_MNT/file1 0 0 65536" "$SCRATCH_MNT/file2" 2>&1)"
|
||||
echo $testio | grep -q "Operation not supported" && \
|
||||
_notrun "Dedupe not supported by test filesystem type: $FSTYP"
|
||||
echo $testio | grep -q "Inappropriate ioctl for device" && \
|
||||
|
||||
Reference in New Issue
Block a user