sbin/hammer: Always call check_volume()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 2 Sep 2016 13:10:33 +0000 (22:10 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 2 Sep 2016 13:56:38 +0000 (22:56 +0900)
commit0e777cf7d155dda39e738bb50e58d8dc61507ad4
tree1a7b8ec38900993aa11a60ea78df440d772832d9
parent6d52f9f2b73b3feb44d1e47915cbdd9ee0e345c9
sbin/hammer: Always call check_volume()

Calling ioctl(DIOCGPART) isn't any overhead compared to i/o workload,
so always just retrieve all the volume info whenever volume_info is
allocated rather than each command calling it on demand.
sbin/hammer/cmd_recover.c
sbin/hammer/cmd_volume.c
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c
sbin/newfs_hammer/newfs_hammer.c