]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allocate extra inodes in makefs when leaving free space in UFS images.
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>
Tue, 6 Apr 2021 17:43:29 +0000 (13:43 -0400)
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>
Tue, 6 Apr 2021 17:43:29 +0000 (13:43 -0400)
commitafb6a168f8ee08ac74769464726c396fbef83d0b
treeb83584d892146c33e91afe865d80f834757965dd
parent9e6158d274829249322efb3767e6ac2e690cc4a9
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.

Reviewed by: manu
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D29492
usr.sbin/makefs/ffs.c
usr.sbin/makefs/ffs.h
usr.sbin/makefs/ffs/mkfs.c
usr.sbin/makefs/makefs.8