git: sbin/hammer: Separate setup_volume() into init/load_volume()
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Mar 19 14:27:41 PDT 2016
commit 1ad8576688e458845b9d269923530100b1cb01b8
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Mon Mar 7 18:57:25 2016 +0900
sbin/hammer: Separate setup_volume() into init/load_volume()
Separate setup_volume() into isnew == 0 and 1 case.
setup_volume() taking two args vol_no and isnew is redundant.
Use init_volume() when newly creating a HAMMER volume.
Use load_volume() when the HAMMER volume already exists.
This commit is based on functions added by the previous two commits.
Summary of changes:
sbin/hammer/cmd_volume.c | 2 +-
sbin/hammer/hammer.c | 2 +-
sbin/hammer/hammer_util.h | 5 +--
sbin/hammer/ondisk.c | 72 +++++++++++++++++++++-------------------
sbin/newfs_hammer/newfs_hammer.c | 2 +-
5 files changed, 44 insertions(+), 39 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1ad8576688e458845b9d269923530100b1cb01b8
--
DragonFly BSD source repository
More information about the Commits
mailing list