git: sbin/hammer: Print volume list after volume-add|del

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Apr 3 22:52:17 PDT 2016


commit b2299751726fb0f5b012207a9f8a726f33bba3f0
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Apr 4 10:33:28 2016 +0900

    sbin/hammer: Print volume list after volume-add|del
    
    Print volume info equivalent of hammer volume-list.
    Using -v on hammer volume-add|del will do the same as
    using -v on hammer volume-list.
    
     # newfs_hammer -L TEST /dev/da1 /dev/da2 /dev/da3 /dev/da4 > /dev/null
     # mount_hammer /dev/da1:/dev/da2:/dev/da3:/dev/da4 /HAMMER
     # hammer volume-list /HAMMER
     /dev/da1
     /dev/da2
     /dev/da3
     /dev/da4
     # hammer volume-del /dev/da2 /HAMMER
     /dev/da1
     /dev/da3
     /dev/da4
     # hammer volume-del /dev/da3 /HAMMER
     /dev/da1
     /dev/da4
     # hammer volume-del /dev/da4 /HAMMER
     /dev/da1
     # hammer volume-add /dev/da4 /HAMMER
     /dev/da1
     /dev/da4
     # hammer volume-add /dev/da3 /HAMMER
     /dev/da1
     /dev/da4
     /dev/da3
     # hammer volume-add /dev/da2 /HAMMER
     /dev/da1
     /dev/da4
     /dev/da3
     /dev/da2

Summary of changes:
 sbin/hammer/cmd_volume.c | 2 ++
 1 file changed, 2 insertions(+)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list