[Bug 269261] data corruption with fspacectl and mmap
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 269261] data corruption with fspacectl and mmap"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Feb 2023 23:05:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269261 Alan Somers <asomers@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #239891|text/x-csrc |text/plain mime type| | --- Comment #3 from Alan Somers <asomers@FreeBSD.org> --- Created attachment 239891 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239891&action=edit standalone test case for fusefs or UFS This is a standalone test case that reproduces the problem for either UFS or fusefs. just compile it, and execute with "./fspace-and-mmap /path/to/filesystem/x.bin". Looking at the debug output of a fusefs file system, the fuse daemon gets the FUSE_FALLOCATE operation before it ever sees the FUSE_WRITE, which seems wrong. I think the VFS needs to flush mapped pages in vn_deallocate_impl. -- You are receiving this mail because: You are the assignee for the bug.