mergerfs/mkdocs/docs/config
Antonio SJ Musumeci d679fdd265 fix: validate and cap thread and queue counts
- std::stoi threw std::out_of_range for a func.readdir concurrency or
  queue depth above INT_MAX, e.g. cor:99999999999. Given at mount,
  mergerfs aborted. Set at runtime through .mergerfs, the daemon shut
  down and the mount went away, or with process-thread-count>0 the
  request never got a reply. Parse with str::from, which reports the
  overflow, and reject the value like any other malformed one.
- Reject a readdir queue depth whose product with the concurrency
  overflows an int, e.g. cor:2147483647:2147483647, instead of
  wrapping it.
- Limit read-thread-count, process-thread-count and the cor/cosr pool
  size to 64 threads per pool, after resolving automatic and
  CPU-divided counts, and log a warning when clamping. Resolve
  negative FUSE counts without overflowing on INT_MIN, and drop the
  unreachable negative readdir concurrency branch.
- process-thread-queue-depth is multiplied by the process thread count.
  Saturate the product at INT_MAX instead of overflowing.
- Correct the docs: cor/cosr counts accept digits only and 0 means the
  core count, at most 8; a queue depth of 0 means 2 per thread;
  read-thread-count=0 with process-thread-count=0 is 2 read threads
  and max(2, cores - 2) process threads, at most 8; the queue limit is
  depth times process threads, each read thread holding one in-flight
  buffer of its own. Point at threads.md for how the settings combine.
- Document the per-read-thread /dev/fuse clones and their fallback.
- tests.cpp covers the overflow cases.

Performance: default thread counts are unchanged (8 on hosts with 8 or
more cores). Only explicit or CPU-divided counts above 64, which
2.42.0 honored, are reduced.
2026-11-29 23:11:00 -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 fix: validate and cap thread and queue counts 2026-11-29 23:11:00 -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 Rework mkdocs based documentation 2025-01-03 12:17:26 -06: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