Skip to contentSkip to conversation

xfstests: generic/299 can have truncate fail

PATCH New Josef Bacik 1 participant 1 message Jan 30, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfstests: generic/299 can have truncate fail

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,

---
 tests/generic/299 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/299 +1 -1
index 14cce96..bf02c94 100755
@@ -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
Signature · 1 line
1.8.3.1