sbin/hammer: Fix terminology of buf_offset
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 17 Dec 2016 00:00:44 +0000 (09:00 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 17 Dec 2016 18:48:49 +0000 (03:48 +0900)
commit0942cbbcb0916b68533d8df4fad644f2021041d5
tree1c656f2f5a2837ac05e95ab496506983c81bc1cf
parentf6d29b27491ba551e2a3365ed684a10f4b3b804e
sbin/hammer: Fix terminology of buf_offset

This commit just renames (local and struct field) variables.
No functional difference.

The way HAMMER userspace uses name "buf_offset" is misleading.
In kernel space, "buf_offset" is for arbitrary zone offsets that
are not limited to zone-2, however in userspace "buf_offset" is
used for zone-2. It should be renamed to "zone2_offset" so the
terminology being used in kernel and userspace are the same.

This is important because the name implies what's stored in
upper 4 bits of 64 bits offset, and having misleading variable
names tends to be error-prone (see the next commit).
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c