commit 56c2f4d6da955cde55e4173bc954e7fe7244013e Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sun Apr 3 08:34:44 2016 +0900
sbin/hammer: Make hammer commands print root volume path Base on the change made by the previous commit, this commit adds the root volume path information (not root volume#) to hammer info and hammer volume-list commands. hammer volume-list shows the path only on -v. This enables users to explicitly know the root volume. [A] The existing /sbin/hammer # hammer -v volume-list /HAMMER /dev/da1 /dev/da2 /dev/da3 # hammer info /HAMMER | grep Root Root Volume 0 [B] With this commit # ./hammer -v volume-list /HAMMER 0 /dev/da1 (Root Volume) 1 /dev/da2 2 /dev/da3 # hammer info /HAMMER | grep Root Root Volume /dev/da1 Summary of changes: sbin/hammer/cmd_info.c | 9 ++++- sbin/hammer/cmd_volume.c | 86 ++++++++++++++++++++++-------------------------- sbin/hammer/hammer.8 | 3 ++ sbin/hammer/hammer.c | 4 +-- sbin/hammer/hammer.h | 6 ++-- sbin/hammer/misc.c | 53 +++++++++++++++++++++++++++++ 6 files changed, 110 insertions(+), 51 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/56c2f4d6da955cde55e4173bc954e7fe7244013e -- DragonFly BSD source repository