]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/reflink: actually test dedupe on scratch device
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 21 Jul 2016 23:46:48 +0000 (16:46 -0700)
committerEryu Guan <eguan@redhat.com>
Fri, 5 Aug 2016 02:32:10 +0000 (10:32 +0800)
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>
common/reflink

index 4ec390d185992eec4af89fa6ddcd4d167fb73d1b..136397143fc065bd1fce9acd42489991610d8066 100644 (file)
@@ -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" && \