git: usr.sbin/makefs: Allocate extra inodes in makefs when leaving free space in UFS images

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Jul 5 23:58:06 PDT 2022


commit 7660903baf65c6a52d4b9ff4d5cafb460cd3c89b
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Tue Jul 5 22:31:01 2022 -0700

    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

Summary of changes:
 usr.sbin/makefs/ffs.c      |  8 +++++++-
 usr.sbin/makefs/ffs.h      |  2 ++
 usr.sbin/makefs/ffs/mkfs.c | 18 +++++++++++++++++-
 usr.sbin/makefs/makefs.8   |  5 ++++-
 4 files changed, 30 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7660903baf65c6a52d4b9ff4d5cafb460cd3c89b


-- 
DragonFly BSD source repository


More information about the Commits mailing list