]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test page fault during direct IO write with O_APPEND
authorFilipe Manana <fdmanana@suse.com>
Sat, 27 Jul 2024 11:28:16 +0000 (12:28 +0100)
committerZorro Lang <zlang@kernel.org>
Tue, 6 Aug 2024 12:41:07 +0000 (20:41 +0800)
commitbd6eec9ad85886163c1f77c99a092da93d613817
tree5d584bc32c868d02571ff321555ed6c4d1f44d45
parentf5ada754d5838d29fd270257003d0d123a9d1cd2
generic: test page fault during direct IO write with O_APPEND

Test that doing a direct IO append write to a file when the input buffer
was not yet faulted in, does not result in an incorrect file size.

This exercises a bug on btrfs reported by users and which is fixed by
the following kernel patch:

   "btrfs: fix corruption after buffer fault in during direct IO append write"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
.gitignore
src/Makefile
src/dio-append-buf-fault.c [new file with mode: 0644]
tests/generic/362 [new file with mode: 0755]
tests/generic/362.out [new file with mode: 0644]