]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic: fallocate against a file range with a mix of holes and extents
authorFilipe Manana <fdmanana@suse.com>
Thu, 17 Mar 2022 16:34:32 +0000 (16:34 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Apr 2022 14:48:30 +0000 (22:48 +0800)
commit52fe88c9f545f24670b12133e3941a9e0bafb929
treea46417c59769c71d8ef69f29a641599774ffa7d1
parent1e516c86003021861734a6b14628059316b1c455
generic: fallocate against a file range with a mix of holes and extents

Test that if we call fallocate against a file range that has a mix
of holes and written extents, the fallocate succeeds if the
filesystem has enough free space to allocate extents for the holes.

This test currently fails on btrfs and is fixed by a patch that has the
following subject:

    "btrfs: only reserve the needed data space amount during fallocate"

The test also fails on xfs, and after some discussion with Darrick,
it seems it's due to technical reasons that would require a
significant effort to xfs's implementation, and at the moment there
isn't enough motivation to do such change. The relevent thread is at:

    https://lore.kernel.org/linux-btrfs/20220315164011.GF8241@magnolia/

Therefore the test is intentionally skipped on xfs only. Ext4 and
f2fs pass this test.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/679 [new file with mode: 0755]
tests/generic/679.out [new file with mode: 0644]