From: Josef Bacik Date: Sun, 2 Feb 2014 23:06:50 +0000 (+1100) Subject: generic/299: truncate can fail with ENOSPC X-Git-Tag: v2022.05.01~3263 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8ebabf72980154444b14a45f4e342a87df81ceb5;p=xfstests-dev.git generic/299: truncate can fail with ENOSPC So this test does lots of fallocate/truncate noise while doing aio overwrites to try and exercise a deadlock found in ext4. Because it runs so hard with ENOSPC it can sometimes cause truncate to fail on btrfs. This is ok and doesn't affect the validity of the test, we just need to catch the output so it doesn't cause the test to fail. Thanks, Signed-off-by: Josef Bacik Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/tests/generic/299 b/tests/generic/299 index 14cce967..bf02c944 100755 --- a/tests/generic/299 +++ b/tests/generic/299 @@ -130,7 +130,7 @@ _workout() done for ((k=1; k <= NUM_JOBS; k++)) do - truncate -s 0 $SCRATCH_MNT/direct_aio.$k.0 + truncate -s 0 $SCRATCH_MNT/direct_aio.$k.0 >> $seqres.full 2>&1 done # Following like will check that pid is still run. # Once fio exit we can stop fallocate/truncate loop