]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: call _require_scratch_dedupe from _require_scratch_duperemove
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Dec 2024 06:53:15 +0000 (07:53 +0100)
committerZorro Lang <zlang@kernel.org>
Sun, 22 Dec 2024 14:09:46 +0000 (22:09 +0800)
_require_scratch_duperemove doesn't check if the scratch file system
actually supports dedup, so add the proper call for that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/reflink

index 22adc4449bc6f9ec7c9519d71cb5e0ce983b4d54..9177c45e70bb3771c04241ded106f6e2df718b72 100644 (file)
@@ -83,6 +83,8 @@ _require_scratch_duperemove()
 
        _scratch_mkfs > /dev/null
        _scratch_mount
+       _require_scratch_dedupe
+
        dd if=/dev/zero of="$SCRATCH_MNT/file1" bs=128k count=1 >& /dev/null
        dd if=/dev/zero of="$SCRATCH_MNT/file2" bs=128k count=1 >& /dev/null
        if ! "$DUPEREMOVE_PROG" -d "$SCRATCH_MNT/file1" \