mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic: make 17[1-4] work well when btrfs compression is enabled
When enabling btrfs compression, original codes can not fill fs correctly, here we introduce _fill_fs() in common/rc, which'll keep creating and writing files until enospc error occurs. Note _fill_fs is copied from tests/generic/256, but with some minor modifications. 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:
committed by
Eryu Guan
parent
f613638308
commit
815015e9ee
+2
-2
@@ -38,6 +38,7 @@ _cleanup()
|
||||
|
||||
# get standard environment, filters and checks
|
||||
. ./common/rc
|
||||
. ./common/populate
|
||||
. ./common/filter
|
||||
. ./common/attr
|
||||
. ./common/reflink
|
||||
@@ -76,8 +77,7 @@ sync
|
||||
|
||||
echo "Allocate the rest of the space"
|
||||
nr_free=$(stat -f -c '%f' $testdir)
|
||||
touch $testdir/file0 $testdir/file1
|
||||
_pwrite_byte 0x61 0 $((blksz * nr_free)) $testdir/eat_my_space >> $seqres.full 2>&1
|
||||
_fill_fs $((blksz * nr_free)) $testdir/space $blksz 0 >> $seqres.full 2>&1
|
||||
sync
|
||||
|
||||
echo "mmap CoW the big file"
|
||||
|
||||
Reference in New Issue
Block a user