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

Tomohiro Kusumi tkusumi at
Tue Jul 21 08:31:52 PDT 2015

commit 9c56653b43654fe05028e2411f6616b1b7d2d01f
Author: Tomohiro Kusumi <kusumi.tomohiro at>
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(-)

DragonFly BSD source repository

More information about the Commits mailing list