]> 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, 27 Apr 2021 01:08:48 +0000 (21:08 -0400)
commit3d9fd6ad1c11bfd9c8928b4df0f612c2e9c238ee
tree56cd4e592ab39aa9bc74d96a430a7c2646c11596
parent57d9ae2a4489a9cab23c52a2ca0b1602d1237234
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

(cherry picked from commit afb6a168f8ee08ac74769464726c396fbef83d0b)
usr.sbin/makefs/ffs.c
usr.sbin/makefs/ffs.h
usr.sbin/makefs/ffs/mkfs.c
usr.sbin/makefs/makefs.8