mergerfs/mkdocs/docs
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
..
config fix: keep readdir listings stable under fill errors 2026-11-29 23:11:07 -05:00
faq docs: note the trees the EXDEV fallbacks leave on branches 2026-11-29 23:10:55 -05:00
setup docs: limit the Compose mount to the permissions mergerfs needs 2026-11-29 23:11:05 -05:00
benchmarking.md Update docs; add nofs, policyfs and greyhole 2026-03-27 22:54:39 -05:00
error_handling_and_logging.md Update docs; add nofs, policyfs and greyhole 2026-03-27 22:54:39 -05:00
extended_usage_patterns.md Misc docs updates (#1549) 2025-10-24 20:47:33 -05:00
index.md docs: clarify branch resolution and mount ordering 2026-09-21 13:46:38 -05:00
intro_to_filesystems.md Misc updates of docs (#1518) 2025-09-01 20:58:58 -05:00
known_issues_bugs.md docs: clarify branch resolution and mount ordering 2026-09-21 13:46:38 -05:00
logo.png Misc doc updates + add logo 2025-04-19 22:44:08 -05:00
media_and_publicity.md Update docs for logging changes + new video (#1618) 2026-02-12 23:21:43 -06:00
migration.md docs: note the trees the EXDEV fallbacks leave on branches 2026-11-29 23:10:55 -05:00
performance.md docs/performance: explain mergerfs IO performance vs RAID 2026-09-05 16:00:43 -04:00
project_comparisons.md docs: Add Unraid migration guidance for mergerfs 2026-10-03 16:52:25 -05:00
quickstart.md docs: document mergerfs tradeoffs and web UI management 2026-10-01 20:14:52 -04:00
related_projects.md docs: document mergerfs tradeoffs and web UI management 2026-10-01 20:14:52 -04:00
remote_filesystems.md Remove timed node removal 2026-05-06 20:49:46 -04:00
resource_usage.md Remove timed node removal 2026-05-06 20:49:46 -04:00
runtime_interface.md docs: fix the runtime interface example and package file names 2026-11-29 23:10:56 -05:00
sponsorship_and_donations.md Add container image details (#1569) 2025-11-08 20:28:10 -06:00
support.md Fixup debug output (#1617) 2026-02-12 22:50:38 -06:00
terminology.md Update terminology.md 2025-02-19 07:04:11 +02:00
tips_notes.md docs: document mergerfs tradeoffs and web UI management 2026-10-01 20:14:52 -04:00
tooling.md docs: document mergerfs tradeoffs and web UI management 2026-10-01 20:14:52 -04:00