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)
Oct 16 2024, 1:54 PM
Unknown Object (File)
Oct 16 2024, 1:54 PM
Unknown Object (File)
Oct 16 2024, 1:54 PM
Unknown Object (File)
Oct 16 2024, 1:32 PM
Unknown Object (File)
Sep 20 2024, 10:41 AM
Unknown Object (File)
Sep 20 2024, 2:04 AM
Unknown Object (File)
Sep 19 2024, 3:06 PM
Unknown Object (File)
Sep 17 2024, 8:01 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