git: sbin/hammer: Make hammer info print rootvol

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Mar 31 11:09:35 PDT 2016


commit 7aee7a8b36b23e1392f206fdea9432f84d6a156f
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Apr 1 01:10:23 2016 +0900

    sbin/hammer: Make hammer info print rootvol
    
    The existence of "root volume" in HAMMER is mentioned in
    error messages and dmesg as well as hammer(8) manpage,
    but the problem is that no command really tells you which
    one is the root volume. This is too obvious if you have
    looked at the source, but no idea if otherwise.
    
    Currently the only one explicitly tells you seems to be
    a printf in newfs_hammer added by dae8f186 in 2015.
    
    This commit adds hammer info a printf for root volume #,
    which is still not clear enough since it's just a number,
    but not a block device path.

Summary of changes:
 lib/libhammer/info.c          | 1 +
 lib/libhammer/libhammer.h     | 3 ++-
 sbin/hammer/cmd_info.c        | 1 +
 sys/vfs/hammer/hammer_ioctl.c | 1 +
 sys/vfs/hammer/hammer_ioctl.h | 2 +-
 5 files changed, 6 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7aee7a8b36b23e1392f206fdea9432f84d6a156f


-- 
DragonFly BSD source repository



More information about the Commits mailing list