df -hi prints inodes count "human-readable"
Enable "human-readable" printing of inodes count when df(1)
is called with both -h and -i flags. This is similar to what can be
found on FreeBSD df(1) or GNU df(1).
The code has been adapted from FreeBSD's df(1) and the manpage updated
accordingly.
Example output:
Now:
% df -hi
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
[...]
/dev/serno/VB6cbedbd6-
0a1f16ee.s1a 756M 302M 393M 43% 949 96k 1% /boot
[...]
Before:
% df -hi
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
[...]
/dev/serno/VB6cbedbd6-
0a1f16ee.s1a 756M 302M 393M 43% 949 96329 1% /boot
[...]