]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test overwriting file with mmap on a full filesystem
authorFilipe Manana <fdmanana@suse.com>
Thu, 10 Jul 2025 17:03:43 +0000 (18:03 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 11 Jul 2025 13:17:44 +0000 (21:17 +0800)
commit5408cc794fe638e78aa0080dd55fd0e65d4319bb
tree1221e893ece7f2b126e809f0508905e1aac180e9
parent9615d021e95eaafb3762289a69aa7245cff7dc7d
generic: test overwriting file with mmap on a full filesystem

Test that overwriting a file with mmap when the filesystem has no more
space available for data allocation works. The motivation here is to check
that NOCOW mode of a COW filesystem (such as btrfs) works as expected.

This currently fails with btrfs but it's fixed by a kernel patch that has
the subject:

   btrfs: fix -ENOSPC mmap write failure on NOCOW files/extents

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/211 [new file with mode: 0755]
tests/generic/211.out [new file with mode: 0644]