git: sbin/newfs_hammer: Explicitly tell which volume is root volume

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Aug 22 10:53:22 PDT 2015


commit dae8f18602e68e4dd2d96ff21cf7447faf0c10c7
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Aug 20 01:13:48 2015 +0900

    sbin/newfs_hammer: Explicitly tell which volume is root volume
    
    hammer volume-del says "Cannot remove root-volume" if one
    tries to remove the root volume, however no hammer commands
    actually tell which one is the root volume.
    
    This commit makes newfs_hammer printf the root volume name,
    followed by the existing undo/etc info of the root volume.
    Also refer to the root volume in manpages.
    
    (It may be helpful if other hammer commands like info or
    volume-list show the root volume name just like newfs_hammer,
    however it's not too trivial to do that. One reason is because
    hammer seems to have been designed that way so users don't
    need to care about any detail of underlying fs volumes.
    This commit is trivial since newfs_hammer code knows which
    one is the root volume)

Summary of changes:
 sbin/hammer/hammer.8             | 8 ++++++++
 sbin/newfs_hammer/newfs_hammer.8 | 4 ++++
 sbin/newfs_hammer/newfs_hammer.c | 1 +
 3 files changed, 13 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dae8f18602e68e4dd2d96ff21cf7447faf0c10c7


-- 
DragonFly BSD source repository


More information about the Commits mailing list