mergerfs/mkdocs/docs/config
Antonio SJ Musumeci eea1c1bc09 fix: keep readdir listings stable under fill errors
- func.readdir=cor appended entries in whichever order branch workers
  finished. Directory offsets are positions in that list, so a reader
  reopening an unchanged directory and seeking to a previously issued
  cookie (NFS does this) could see a duplicate and miss a later entry.
  Read branches concurrently into their own buffers, then merge and
  deduplicate them in configured branch order. The merge mutex is gone.
- Growing a dirents buffer overwrote the only pointer with realloc's
  result while recording the new capacity, so an allocation failure
  leaked the buffer and the next fill wrote through NULL. Grow both
  vectors without changing pointer, length or capacity until the
  allocation succeeds, and return ENOMEM.
- seq and cosr ignored that failure and served a listing with entries
  missing. Every policy now returns the error, and libfuse resets the
  handle's buffer whenever a fill fails, so a later request at a
  nonzero offset re-enumerates instead of serving a partial or stale
  listing as success. cosr closes the directories its workers opened
  when it gives up early.
- Document the fill-error contract, which doesn't promise that every
  branch was read: seq and cosr can treat a branch read error as the
  end of the directory. Document cor's memory use, and refer to
  func.getattr, not fuse.getattr.
- TEST_readdir_cor_cookie_replay compares cor listings, offsets and
  inodes with seq and replays cookies on fresh handles.
  TEST_dirents_allocation injects allocation failures into the dirents
  code. TEST_readdir_cor_enomem fails one allocation in a mounted
  daemon for cor and seq and checks the same handle then serves the
  exact suffix.

Performance: cor copies each entry twice and merges serially after the
parallel reads. Listing 100,000 entries over 4 tmpfs branches took
the same time before and after (81-83 ms per listing for cor:4 and
seq). Peak daemon memory for cor:4 dropped from 27.4 MB to 18.7 MB.
2026-11-29 23:11:07 -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 fix: make the statfs cache correct and its timeout configurable 2026-11-29 23:11:06 -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 fix: keep readdir listings stable under fill errors 2026-11-29 23:11:07 -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: pick the moveonenospc source and destination correctly 2026-11-29 23:10:59 -05:00
nfsopenhack.md fix: restore the mode when an nfsopenhack open fails 2026-11-29 23:11:01 -05:00
nullrw.md Rework mkdocs based documentation 2025-01-03 12:17:26 -06:00
options.md fix: validate and cap thread and queue counts 2026-11-29 23:11:00 -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: validate and cap thread and queue counts 2026-11-29 23:11:00 -05:00
xattr.md Rework mkdocs based documentation 2025-01-03 12:17:26 -06:00