git: sbin/newfs_hammer: Allow 0 for boot_area/memory_log size [3/3]

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Oct 29 21:30:58 PDT 2016


commit e2052dd5ac29e339263b3949744d21451041e664
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Oct 30 00:25:22 2016 +0900

    sbin/newfs_hammer: Allow 0 for boot_area/memory_log size [3/3]
    
    This commit gives an option to allocate no space for
    boot_area/memory_log since these aren't used for anything.
    
    Allow boot_area/memory_log size smaller than HAMMER_{BOOT,MEM}_MINBYTES
    if -f is specified. If -f is not specified, MINBYTES are still
    low limits for boot_area/memory_log.
    
    This is similar to the way newfs_hammer allows undo size smaller
    than 512MB when -f is specified.

Summary of changes:
 sbin/newfs_hammer/newfs_hammer.c | 35 ++++++++++++++++++++++++++---------
 1 file changed, 26 insertions(+), 9 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list