Werk #20153 · Jul 6, 26
df: Fix crash when a filesystem's usable capacity is 0
The filesystem check (df) and other checks that reuse its logic — Pure Storage
FlashArray capacity/volumes and sansymphony pool — could crash with
ZeroDivisionError: float division by zero when the reported usable capacity
was zero, for example when a filesystem had its entire capacity reserved for the
root user. These checks now report a WARN status with the following summary:
"Size of usable filesystem is 0 B"
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p9All Editions
- 2.4.0p34All Editions