Page MenuHomeFreeBSD

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

Authored by bapt on Mar 10 2022, 2:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 2:50 AM
Unknown Object (File)
Wed, May 8, 2:50 AM
Unknown Object (File)
Wed, May 8, 2:38 AM
Unknown Object (File)
Wed, May 8, 2:38 AM
Unknown Object (File)
Wed, May 8, 12:25 AM
Unknown Object (File)
Mar 21 2024, 6:49 AM
Unknown Object (File)
Mar 8 2024, 2:38 AM
Unknown Object (File)
Mar 8 2024, 2:38 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bapt requested review of this revision.Mar 10 2022, 2:31 PM

before:

$ df -i /dev
devfs                       2        2         0   100%       0          0   100%   /dev

after:

$ df -i /dev
devfs                       2        2         0   100%       0          0      -   /dev

it avoids monitoring tools which look for inode occupation to have to maintain of list of filesystem to skip.

Note that on linux df is doring the same, for example on msdosfs filesystem.

This revision is now accepted and ready to land.Mar 10 2022, 2:34 PM

Seems reasonable to me. Perhaps we should note it in the man page?

Seems reasonable to me. Perhaps we should note it in the man page?

+1