sbin/newfs_hammer2: Expand -s option to allow >1 values for multi-volumes
commit2dc244c93cda3a8c2356811437febfa65777a16c
authorTomohiro Kusumi <tkusumi@netbsd.org>
Fri, 17 Mar 2023 06:30:37 +0000 (16 23:30 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Fri, 17 Mar 2023 07:06:18 +0000 (17 00:06 -0700)
treeb476530d7fa922f3e9d3f7c70b8c5fa534e55b6f
parent500c9ec621dcfe7b7d604b70483809f9e4d26b97
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.
sbin/newfs_hammer2/mkfs_hammer2.c
sbin/newfs_hammer2/mkfs_hammer2.h
sbin/newfs_hammer2/newfs_hammer2.c