sbin/hammer: Make hammer_parsedevs() initialize NumVolumes
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 19 Jul 2015 15:33:36 +0000 (00:33 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 21 Jul 2015 10:36:12 +0000 (19:36 +0900)
commit9c56653b43654fe05028e2411f6616b1b7d2d01f
treef15165a863a6edc11ded41849d5c089fbdc86a67
parent96755dea4347651ee885d03a6b141f3fcbb57558
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.
sbin/hammer/hammer.c