git: sbin/hammer: Always call check_volume()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Sep 2 07:51:46 PDT 2016


commit 0e777cf7d155dda39e738bb50e58d8dc61507ad4
Author: Tomohiro Kusumi <kusumi.tomohiro at 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


More information about the Commits mailing list