linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfstests: generic/299 can have truncate fail
@ 2014-01-30 22:01 Josef Bacik
  0 siblings, 0 replies; only message in thread
From: Josef Bacik @ 2014-01-30 22:01 UTC (permalink / raw)
  To: linux-btrfs, xfs

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 <jbacik@fb.com>
---
 tests/generic/299 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/299 b/tests/generic/299
index 14cce96..bf02c94 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
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-30 22:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 22:01 [PATCH] xfstests: generic/299 can have truncate fail Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).