git: usr.sbin/makefs: Add HAMMER2 offline growfs support

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Jun 6 23:00:56 PDT 2023


commit afa5234b4929bad6fae51a08e548a4f5c167cece
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Wed Jun 7 01:12:14 2023 -0700

    usr.sbin/makefs: Add HAMMER2 offline growfs support
    
    The offline growfs takes HAMMER2 specific "-o G" option.
    `image-file` argument is a valid HAMMER2 image file or block device.
    `directory` argument is unused, but needs to be a valid path or "--".
    
    e.g.
    $ makefs -t hammer2 -o G /dev/adx --
    $ makefs -t hammer2 -o G /path/to/hammer2.img --
    
    By default expands volume to image file or block device size.
    If -s option is specified, use that size.
    No shrink support in the same way hammer2(8) growfs doesn't.

Summary of changes:
 usr.sbin/makefs/hammer2.c               | 49 +++++++++++++++++++++++++++------
 usr.sbin/makefs/hammer2.h               |  1 +
 usr.sbin/makefs/hammer2/hammer2.h       |  1 +
 usr.sbin/makefs/hammer2/hammer2_ioctl.c | 18 +++++++-----
 usr.sbin/makefs/makefs.8                | 13 ++++++++-
 usr.sbin/makefs/makefs.c                |  2 +-
 usr.sbin/makefs/walk.c                  |  2 +-
 7 files changed, 68 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/afa5234b4929bad6fae51a08e548a4f5c167cece


-- 
DragonFly BSD source repository


More information about the Commits mailing list