mergerfs/mkdocs
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
..
docs fix: return the error, not a short count, for page cache flushes 2026-11-22 08:27:04 -05:00
build-venv Update limiting drive spinup doc 2026-03-04 11:05:55 -05:00
generate-and-push-docs Don't push docs for RC tags 2026-04-23 20:46:55 -05:00
mkdocs.yml docs: Add Unraid migration guidance for mergerfs 2026-10-03 16:52:25 -05:00
README.md Misc documentation changes (#1489) 2025-06-29 19:08:57 -05:00

mkdocs

Getting started

python3 -m venv venv
source venv/bin/activate
pip3 install --no-cache-dir mkdocs mkdocs-material pymdown-extensions mike
mike serve

Deploy

mike deploy --push <version_name> --allow-empty

References