]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
df: do not report a 100% full inode usage on fs without inodes
authorBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 10 Mar 2022 14:28:50 +0000 (15:28 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 12 Oct 2022 09:20:09 +0000 (11:20 +0200)
commit1a566dd6a48067b0bf93ef813e01a515be4997ce
tree24d86f540006fee89b4f326cdf3632ca2cfd9fe5
parent08c16de8d413d7e5db06f9d88e6f468de66005b4
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)
bin/df/df.1
bin/df/df.c