From a0e33b4b47318176780b992d9c420e3ba58b3c5a Mon Sep 17 00:00:00 2001 From: Josef Bacik Date: Fri, 17 May 2024 00:12:48 +0200 Subject: [PATCH] generic/269: require no compression This is meant to test ENOSPC, but we're dd'ing /dev/zero, which won't fill up anything with compression on. Additionally we're killing dd and then immediately trying to unmount. With compression we could have references to the inode being held by the async compression workers, so sometimes this will fail with EBUSY on the unmount. A better test would be to use slightly compressible data; use _ddt. Reviewed-by: Anand Jain Signed-off-by: Josef Bacik Signed-off-by: David Sterba Signed-off-by: Anand Jain [ changed to use _ddt ] --- tests/generic/269 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/269 b/tests/generic/269 index b7cdecd9..29f45373 100755 --- a/tests/generic/269 +++ b/tests/generic/269 @@ -29,7 +29,7 @@ _workout() for ((i=0; i < num_iterations; i++)) do # File will be opened with O_TRUNC each time - dd if=/dev/zero of=$SCRATCH_MNT/SPACE_CONSUMER bs=1M \ + _ddt of=$SCRATCH_MNT/SPACE_CONSUMER bs=1M \ >> $seqres.full 2>&1 sleep $enospc_time done -- 2.39.5