df -hi prints inodes count "human-readable"
authorRobin Hahling <robin.hahling@gw-computing.net>
Fri, 25 Oct 2013 06:54:23 +0000 (08:54 +0200)
committerSascha Wildner <saw@online.de>
Fri, 25 Oct 2013 23:08:34 +0000 (01:08 +0200)
commit009e9a29f4fe6b08fb88e7e4aac291be55d58540
treee6eb5e141e882fdf84ad6a3b90908f7614005d40
parent37a07508d10efff9a0276ea5deda62d022383936
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
[...]
bin/df/df.1
bin/df/df.c