common/rc: introduce minimal fs size check
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 11 Aug 2021 15:12:25 +0000 (00:12 +0900)
committerEryu Guan <guaneryu@gmail.com>
Sun, 15 Aug 2021 15:25:08 +0000 (23:25 +0800)
commit72699dc08b1d5009b19b337d2d4efa57ad92912b
tree6c007d17252920ac2aea8ffb6e551b481d81e6e6
parentd26e07ebb6a2ec01f0d71a6d7a23dabbc7a59326
common/rc: introduce minimal fs size check

_scratch_mkfs_sized() create a file system with specified size
limit. It can, however, too small for certain kind of devices. For
example, zoned btrfs requires at least 5 zones to make a file system.

This commit introduces MIN_FSSIZE, which specify the minimum size of the
possible file system. We can set this variable e.g. $ZONE_SIZE *
$MIN_ZONE_COUNT.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
README
common/rc