sys/vfs/hammer: Add HAMMER_ROOT_VOLNO
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 5 Mar 2016 17:47:55 +0000 (02:47 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 18 Mar 2016 09:22:54 +0000 (18:22 +0900)
commit7a39af79b9dad7576da61478f1919db10a6ff00e
tree21bdca60cb3e9f591afac28d5893afc3c348caa1
parent413cc6b1afb32071f9873bf1b545493b1710c5fc
sys/vfs/hammer: Add HAMMER_ROOT_VOLNO

The root volume# is always 0, so hammer userspace can use 0
instead of having a global variable RootVolNo that needs to
be set from -1 to 0 (and only 0).

Ondisk volume header even has fields whose name start with
vol0_xxx. This implies the root volume# is designed to be 0,
but nothing else.
sbin/hammer/blockmap.c
sbin/hammer/cmd_blockmap.c
sbin/hammer/cmd_show.c
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c
sbin/newfs_hammer/newfs_hammer.c
sys/vfs/hammer/hammer_disk.h