git: sys/vfs/hammer: Change ondisk vol_nblocks/blocksize to reserved
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sun Mar 27 10:07:47 PDT 2016
commit aa933af86b5d1a8aa5d117dab1281f10fbe5039d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sat Mar 26 14:03:55 2016 +0900
sys/vfs/hammer: Change ondisk vol_nblocks/blocksize to reserved
These were added in fbc6e32a in 2007 in the early stage of HAMMER,
but vol_nblocks wasn't used after 9480ff55 in 2008. vol_blocksize
was never used.
HAMMER volumes have these set by newfs_hammer and hammer volume-add,
but today they are just there for nothing (with obvious values).
The existing HAMMER volumes will keep having vol_nblocks/blocksize
fields initially set by newfs_hammer or added by hammer volume-add,
but new volumes created or added from now on will have 0 for these.
It doesn't erase what's in the existing volume headers.
(There shouldn't be external userspace code that refers to these)
Summary of changes:
sbin/newfs_hammer/newfs_hammer.c | 3 ---
sys/vfs/hammer/hammer_disk.h | 5 ++---
sys/vfs/hammer/hammer_volume.c | 3 ---
3 files changed, 2 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/aa933af86b5d1a8aa5d117dab1281f10fbe5039d
--
DragonFly BSD source repository
More information about the Commits
mailing list