sbin/newfs_hammer: Explicitly tell which volume is root volume
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 19 Aug 2015 16:13:48 +0000 (01:13 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 22 Aug 2015 15:48:29 +0000 (00:48 +0900)
commitdae8f18602e68e4dd2d96ff21cf7447faf0c10c7
treefaaf3efaa11ddd5d55488c975a2bc669b3815a1f
parent2150c2aabc03ab39e553690ee7780cb85de489ae
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)
sbin/hammer/hammer.8
sbin/newfs_hammer/newfs_hammer.8
sbin/newfs_hammer/newfs_hammer.c