commit 0e777cf7d155dda39e738bb50e58d8dc61507ad4 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Fri Sep 2 22:10:33 2016 +0900
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. Summary of changes: sbin/hammer/cmd_recover.c | 1 - sbin/hammer/cmd_volume.c | 1 - sbin/hammer/hammer_util.h | 1 - sbin/hammer/ondisk.c | 8 +++----- sbin/newfs_hammer/newfs_hammer.c | 6 ------ 5 files changed, 3 insertions(+), 14 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0e777cf7d155dda39e738bb50e58d8dc61507ad4 -- DragonFly BSD source repository