git: sbin/hammer: Add hammer volume-blkdevs command

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Jun 27 10:38:46 PDT 2015


commit b45632fb0302570b183cd6837894cfde0979d97e
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Jun 28 01:03:29 2015 +0900

    sbin/hammer: Add hammer volume-blkdevs command
    
    - Many of the low-level hammer commands (e.g. show, blockmap,
      checkmap, etc) require -f option with blkdevs format argument,
      however hammer command does not provide a way to confirm volumes
      in blkdevs format. One often has to manually type devices with
      colons to generate blkdevs format via volume-list command.
    
    - hammer volume-blkdevs prints a list of volumes in blkdevs format
      which is just a different version of volume-list but useful.
    
    - hammer volume-list and volume-blkdevs are basically the same.
      The only difference is volume-list uses '\n' for separator and
      volume-blkdevs uses ':' for separator.
    
      # hammer volume-list /HAMMER
      /dev/da1
      /dev/da2
      /dev/da3
      # hammer volume-blkdevs /HAMMER
      /dev/da1:/dev/da2:/dev/da3
      #

Summary of changes:
 sbin/hammer/cmd_volume.c | 54 ++++++++++++++++++++++++++++++++----------------
 sbin/hammer/hammer.8     |  7 +++++++
 sbin/hammer/hammer.c     |  7 ++++++-
 sbin/hammer/hammer.h     |  3 ++-
 4 files changed, 51 insertions(+), 20 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list