mergerfs/mkdocs/docs/config
Antonio S. Musumeci 64d3af02a3 fix: return the error, not a short count, for page cache flushes
- 072b07b6 made a write that fails with ENOSPC after part of it landed
  return the bytes written. The kernel issues writes to flush its page
  cache (cache.writeback, dirty mmap pages) with the writepage flag
  and ignores the size in the reply, then drops the pages. The short
  count lost the rest of the data and hid the error: write, fsync,
  msync and close all succeeded with half the data on disk, where
  2.42.2 returned ENOSPC from fsync or msync.
- Keep the short count for ordinary writes, which the kernel does
  handle, and return the error when the request has writepage set.
- TEST_movefile_enospc covers a writeback flush and an mmap msync with
  moveonenospc=false; both fail without this change. Note the
  exception in moveonenospc.md.

Initialize the flush-test error list before the first I/O operation so
an unexpected error propagates and the descriptor is still closed.
Use the mapping as a context manager for the same reason.
2026-11-22 08:27:04 -05:00
..
branches-mount-timeout.md docs: clarify branch resolution and mount ordering 2026-09-21 13:46:38 -05:00
branches.md docs: clarify branch resolution and mount ordering 2026-09-21 13:46:38 -05:00
cache.md Update fuse-msg-size docs (#1552) 2025-10-24 23:34:28 -05:00
deprecated_options.md Document advisory locking limitation and update deprecated options 2026-05-06 20:49:46 -04:00
export-support.md Add config option to control default_permissions 2025-04-25 16:34:39 -05:00
flush-on-close.md Rework mkdocs based documentation 2025-01-03 12:17:26 -06:00
follow-symlinks.md Rework mkdocs based documentation 2025-01-03 12:17:26 -06:00
func_readdir.md docs: correct func.readdir counts and the queue depth of 0 2026-11-22 01:25:13 -05:00
functions_categories_policies.md Preserve directory modes when cloning paths across branches 2026-11-04 19:25:10 -06:00
fuse-msg-size.md Update fuse-msg-size docs (#1552) 2025-10-24 23:34:28 -05:00
inodecalc.md Add details to docs about FreeBSD limitations 2025-05-09 21:18:20 -05:00
kernel-permissions-check.md idmap mount support (#1523) 2025-09-18 00:07:28 -05:00
lazy-umount-mountpoint.md Add lazy-umount-mountpoint page and mount -a FAQ (#1573) 2025-11-12 12:19:00 -06:00
link-cow.md Config options docs updates (#1551) 2025-10-24 22:31:04 -05:00
link-exdev.md Fix branch snapshot lifetime in EXDEV link fallback 2026-11-06 12:10:05 -06:00
minfreespace.md Add doc pages for minfreespace and moveonenospc + other misc updates 2025-04-10 22:59:49 -05:00
moveonenospc.md fix: return the error, not a short count, for page cache flushes 2026-11-22 08:27:04 -05:00
nfsopenhack.md fix: restore the mode when an nfsopenhack open fails 2026-11-21 14:53:55 -05:00
nullrw.md Rework mkdocs based documentation 2025-01-03 12:17:26 -06:00
options.md docs: correct func.readdir counts and the queue depth of 0 2026-11-22 01:25:13 -05:00
passthrough.md Config options docs updates (#1551) 2025-10-24 22:31:04 -05:00
pin-threads.md Rework mkdocs based documentation 2025-01-03 12:17:26 -06:00
proxy-ioprio.md Rework config, centralize fuse config (#1547) 2025-10-24 08:20:29 -05:00
readahead.md Config options docs updates (#1551) 2025-10-24 22:31:04 -05:00
rename-exdev.md fix: preserve source ownership in EXDEV symlink fallbacks 2026-11-01 21:11:04 -06:00
rename_and_link.md Fix broken doc links (#1525) 2025-09-19 19:25:31 -05:00
statfs.md Rework mkdocs based documentation 2025-01-03 12:17:26 -06:00
symlinkify.md Rework mkdocs based documentation 2025-01-03 12:17:26 -06:00
threads.md fix: saturate the process thread queue depth instead of overflowing 2026-11-21 18:12:38 -05:00
xattr.md Rework mkdocs based documentation 2025-01-03 12:17:26 -06:00