git: sbin/newfs_hammer2: Expand -s option to allow >1 values for multi-volumes

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Mar 17 00:27:07 PDT 2023


commit 2dc244c93cda3a8c2356811437febfa65777a16c
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Thu Mar 16 23:30:37 2023 -0700

    sbin/newfs_hammer2: Expand -s option to allow >1 values for multi-volumes
    
    If -s option takes a single value, the behavior doesn't change.
    The value is considered a limit for the total space.
    
    If -s option takes multiple values using ':' separator, each value
    is considered a limit for each multi-volumes volume, rather than each
    volume size deducted from remaining size.
    
    If multiple values is specified, number of values must match
    number of volumes.

Summary of changes:
 sbin/newfs_hammer2/mkfs_hammer2.c  | 25 ++++++++++++++++++++++---
 sbin/newfs_hammer2/mkfs_hammer2.h  |  3 ++-
 sbin/newfs_hammer2/newfs_hammer2.c | 26 ++++++++++++++++++++++----
 3 files changed, 46 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2dc244c93cda3a8c2356811437febfa65777a16c


-- 
DragonFly BSD source repository


More information about the Commits mailing list