From: Christoph Hellwig Date: Tue, 10 Dec 2024 06:53:15 +0000 (+0100) Subject: common: call _require_scratch_dedupe from _require_scratch_duperemove X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3b9f5fc7d7d853be6f7ec60a7607e2f4ad22c36f;p=users%2Fhch%2Fxfstests-dev.git common: call _require_scratch_dedupe from _require_scratch_duperemove _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 Tested-by: Chuck Lever Reviewed-by: Darrick J. Wong Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/common/reflink b/common/reflink index 22adc4449..9177c45e7 100644 --- a/common/reflink +++ b/common/reflink @@ -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" \