git: sbin/hammer: Make hammer_parsedevs() initialize NumVolumes

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Jul 21 08:31:52 PDT 2015


commit 9c56653b43654fe05028e2411f6616b1b7d2d01f
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Jul 20 00:33:36 2015 +0900

    sbin/hammer: Make hammer_parsedevs() initialize NumVolumes
    
    - hammer_parsedevs() should initialize NumVolumes as well as
      initializing volumes. This is as simple as incrementing the
      counter each time setup_volume() is called.
    
    - newfs_hammer can tell and initialize NumVolumes from argc,
      however low-level hammer commands that use hammer_parsedevs()
      can't do this because a blkdevs arg contains volumes joined
      by ':'. These commands need a way to initialize NumVolumes.

Summary of changes:
 sbin/hammer/hammer.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9c56653b43654fe05028e2411f6616b1b7d2d01f


-- 
DragonFly BSD source repository


More information about the Commits mailing list