git: df -hi prints inodes count "human-readable"

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Oct 25 17:02:33 PDT 2013


commit 009e9a29f4fe6b08fb88e7e4aac291be55d58540
Author: Robin Hahling <robin.hahling at gw-computing.net>
Date:   Fri Oct 25 08:54:23 2013 +0200

    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
    [...]

Summary of changes:
 bin/df/df.1 |  9 +++++++--
 bin/df/df.c | 28 ++++++++++++++++++++++++++--
 2 files changed, 33 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/009e9a29f4fe6b08fb88e7e4aac291be55d58540


-- 
DragonFly BSD source repository


More information about the Commits mailing list