generic: run write(2) and fallocate(2) in parallel

Currently in btrfs, there is something wrong with fallocate(2)'s
data space reservation, it'll temporarily occupy more data space
thant it really needs, which in turn will impact other operations'
data request.

In this test case, it runs write(2) and fallocate(2) in parallel and
the total needed data space for these two operations don't exceed
whole fs free data space, to see whether we will get any unexpected
ENOSPC error.

Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Wang Xiaoguang
2016-07-25 15:43:30 +08:00
committed by Eryu Guan
parent b18191a1d0
commit 4427c1a44f
3 changed files with 78 additions and 0 deletions
+1
View File
@@ -373,3 +373,4 @@
368 auto quick richacl
369 auto quick richacl
370 auto quick richacl
371 auto quick enospc prealloc