mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Previously the statfs free-space guards were gated on IS_SNAP. But a Snap container may also be unable to report free space (statfs fails). Drive the behaviour off whether free space is actually MEASURABLE instead: - updateDiskFree: skip statfs only on Sandstorm (where it is known-unreliable — reports the host disk, not the grain quota); everywhere else ATTEMPT statfs, and on failure leave state.diskFree < 0 (unknown). - ensureDiskForFile / the up-front total-size pre-check: run only when state.diskFree >= 0 (measurable); otherwise skip and rely on an ENOSPC/EDQUOT write failure. - Dashboard already hides the free-space figure and switches to "free space required for all files" whenever diskFree < 0, so a Snap-with-no-statfs degrades exactly like Sandstorm: try, and stop + delete + report on a write failure. IS_SNAP is now only used for the platform log line. CHANGELOG updated.