sys/vfs/hammer: Change ondisk vol_nblocks/blocksize to reserved
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 26 Mar 2016 05:03:55 +0000 (14:03 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 27 Mar 2016 15:43:22 +0000 (00:43 +0900)
commitaa933af86b5d1a8aa5d117dab1281f10fbe5039d
treeb2efbfa4ca35feb4e486a561488adb2cc1b62ff7
parentce0817d98f712981cf01b0bd769463b49bf36b24
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)
sbin/newfs_hammer/newfs_hammer.c
sys/vfs/hammer/hammer_disk.h
sys/vfs/hammer/hammer_volume.c