mergerfs/mkdocs/docs/config
Antonio S. Musumeci 898ad5992d fix: keep failed statvfs results in the cache and track entry validity
- A new entry was told apart from a fresh one only by its time of 0.
  With a timeout at least the current time in seconds, such as
  cache.statfs=4294967295, a new entry looked fresh before statvfs
  had run, so the zeroed struct was returned as success: every branch
  reported no free space and every create failed with ENOSPC, and a
  nonexistent path succeeded. 3735d721 applies cache.statfs from the
  mount options, which made it reachable from fstab. Give the entry a
  valid flag set by the first statvfs.
- 5e74822f stopped caching a failure as a success by retrying it on
  every call, under the exclusive lock. With a branch that fails
  slowly, such as an unreachable network mount, each caller then
  waited for its own failure one after the other: eight callers took
  2.4s where 2.42.2 took 0.3s. Keep the failure, as an error, for the
  timeout like a success. It is still never returned as zeroed space.
- Read the clock again once the lock is held, so a caller that waited
  doesn't compute a negative age against the entry another refreshed.
- Tests: a failure is kept until the timeout, and timeouts of
  4294967295 and UINT64_MAX still return real values and errors. Both
  fail without this change.

Measure age with a steady clock, starting when statvfs returns. Even a
refresh slower than the configured timeout can be shared by callers
that waited for it; wall-clock adjustments cannot extend its lifetime.
2026-11-22 08:28:48 -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: keep failed statvfs results in the cache and track entry validity 2026-11-22 08:28:48 -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