mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-14 00:00:30 +00:00
8318c74687
pct df takes the container config lock and costs over a second per guest, and every per-container query shared one 10-second budget with pct list, so hosts with more than a handful of running containers only ever reported filesystem usage for the first few (signal: killed on the rest). Resolve per-mount usage with statfs through /proc/<pid>/root instead: read the config-declared mounts from /etc/pve/lxc, resolve the init pid via lxc-info, and drop config mounts whose device identity matches their parent directory rather than inventing the parent's numbers. pct df remains as a per-container fallback for least-privilege installs that cannot traverse /proc/<pid>/root, each container now carries its own deadline inside a bounded collection window, and exhausting that window logs how many containers were skipped instead of failing silently at debug level. Refs #1477