usr.sbin/makefs: Allocate extra inodes in makefs when leaving free space in UFS images
authorTomohiro Kusumi <tkusumi@netbsd.org>
Wed, 6 Jul 2022 05:31:01 +0000 (22:31 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Wed, 6 Jul 2022 06:37:17 +0000 (23:37 -0700)
commit7660903baf65c6a52d4b9ff4d5cafb460cd3c89b
tree1708180a77aefefee0b0e9d0b4be4bc3ae27c6ea
parent214357ff39157c4bbd99df364ed6dd28c212b0c9
usr.sbin/makefs: Allocate extra inodes in makefs when leaving free space in UFS images

By default, makefs(8) has very few spare inodes in its output images,
which is fine for static filesystems, but not so great for VM images
where many more files will be added. Make makefs(8) use the same
default settings as newfs(8) when creating images with free space --
there isn't much point to leaving free space on the image if you
can't put files there. If no free space is requested, use current
behavior of a minimal number of available inodes.

taken-from FreeBSD afb6a168f8ee08ac74769464726c396fbef83d0b
usr.sbin/makefs/ffs.c
usr.sbin/makefs/ffs.h
usr.sbin/makefs/ffs/mkfs.c
usr.sbin/makefs/makefs.8