From 8a7a450240e5c5c527d4d17267a1efbc4564f89c Mon Sep 17 00:00:00 2001 From: damocles Date: Mon, 27 Jul 2026 13:05:35 +0200 Subject: [PATCH] disk_watch: rebase on main's merged fix, keep the shared-volume rationale in the module doc --- hive-agent/src/disk_watch.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hive-agent/src/disk_watch.rs b/hive-agent/src/disk_watch.rs index bc991d2b..a38f1b63 100644 --- a/hive-agent/src/disk_watch.rs +++ b/hive-agent/src/disk_watch.rs @@ -16,6 +16,14 @@ //! into a new bucket (or a change in which directories are big enough to //! list) speaks up again. Dropping back under the threshold clears the //! todo. +//! +//! Scoped by design: the `statvfs` reads the *whole filesystem*, which on +//! a shared host volume (several agents' state dirs on the same +//! subvolume) can sit over threshold because of bytes some other agent +//! owns. The todo only fires when this agent's own tree ([`big_dirs`]) +//! actually contains something big enough to name — an agent whose own +//! footprint is negligible has nothing it can safely free, so it stays +//! silent instead of nagging everyone on a crowded volume. use std::ffi::CString; use std::fmt::Write as _;