mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 21:00:13 -05:00
- When ENOSPC recovery failed after part of a write reached the file (moveonenospc off, no branch to move to, or the move or retry failing), write returned the error and dropped the count although those bytes were on disk. An O_APPEND writer retrying the whole buffer duplicated them. Return the bytes written as a short write, as a local filesystem does; a write that wrote nothing still returns the error. - The kernel flushes its page cache (cache.writeback, dirty mmap pages) with writepage requests, ignores the size in the reply and drops the pages. A short count there lost data while write, fsync, msync and close all succeeded. Use the request's writepage flag, not the handle's cache mode, so cached and direct-I/O handles both return the error for an incomplete flush. - TEST_movefile_enospc covers a short append, writeback and mmap flushes and a direct shared mapping where the kernel allows one. tests.cpp calls the write callback directly so the direct-handle contract is covered on every kernel. Document both in moveonenospc.md. |
||
|---|---|---|
| .. | ||
| config | ||
| faq | ||
| setup | ||
| benchmarking.md | ||
| error_handling_and_logging.md | ||
| extended_usage_patterns.md | ||
| index.md | ||
| intro_to_filesystems.md | ||
| known_issues_bugs.md | ||
| logo.png | ||
| media_and_publicity.md | ||
| migration.md | ||
| performance.md | ||
| project_comparisons.md | ||
| quickstart.md | ||
| related_projects.md | ||
| remote_filesystems.md | ||
| resource_usage.md | ||
| runtime_interface.md | ||
| sponsorship_and_donations.md | ||
| support.md | ||
| terminology.md | ||
| tips_notes.md | ||
| tooling.md | ||