sbin/newfs_hammer: Add hidden -j option for header junk space
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 30 Oct 2016 07:17:51 +0000 (16:17 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 31 Oct 2016 14:13:40 +0000 (23:13 +0900)
commitb2bafd84bbc143f04e97df6134e39215d037dde5
treed075bd082ec51492f7127e6699c46335b8148b45
parenta4cb163fc36da1474cf11be2aea9f2ad6c843add
sbin/newfs_hammer: Add hidden -j option for header junk space

There is 256KB header junk space (which includes volume header)
starting from offset 0 of the filesystem partition up until
where boot_area/memory_log starts, but the header junk space
beyond volume header isn't used for anything.

This commit adds -j option to specify header junk size smaller
than 256KB. -j option does exactly the same as how -b,-m,-u
options allow below low limit when -f is specified.

Don't mention this option in newfs_hammer(8) because there is
no reason for users to use this. The header junk space exists
only for future enhancement of volume header (though most likely
will never be used), so users should just stick with 256KB.
sbin/newfs_hammer/newfs_hammer.c
sys/vfs/hammer/hammer_volume.c