git: sbin/newfs_hammer: Add hidden -j option for header junk space

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Oct 31 07:54:51 PDT 2016


commit b2bafd84bbc143f04e97df6134e39215d037dde5
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Oct 30 16:17:51 2016 +0900

    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.

Summary of changes:
 sbin/newfs_hammer/newfs_hammer.c | 46 ++++++++++++++++++++++++++++++++++------
 sys/vfs/hammer/hammer_volume.c   |  1 -
 2 files changed, 39 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b2bafd84bbc143f04e97df6134e39215d037dde5


-- 
DragonFly BSD source repository


More information about the Commits mailing list