HomeFreeBSD

df: do not report a 100% full inode usage on fs without inodes

Description

df: do not report a 100% full inode usage on fs without inodes

Before:
devfs 2 2 0 100% 0 0 100% /dev

After:
devfs 2 2 0 100% 0 0 - /dev

The previous behaviour was confusing for end users and many monitoring tools

Note the linux df tools is also using the same syntax '-' for such filesystem

MFC After: 2 weeks
Reviewed by: manu, emaste, imp
Differential Revision: https://reviews.freebsd.org/D34515

(cherry picked from commit 2eee44bd5ebcb88bf304215be1b0c68b6802a924)

Details

Provenance
baptAuthored on Mar 10 2022, 2:28 PM
Reviewer
manu
Differential Revision
D34515: df: do not report a 100% full inode usage on fs without inodes
Parents
rG08c16de8d413: locate: change from BSD-4-clause to BSD-3-clause
Branches
Unknown
Tags
Unknown