git: usr.sbin/makefs: Add HAMMER2 offline inode get support

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Jun 16 01:37:03 PDT 2023


commit f804c4258392d77732fa77de5f610e0580ae3cf6
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Fri Jun 16 00:15:21 2023 -0700

    usr.sbin/makefs: Add HAMMER2 offline inode get support
    
    The offline inode takes HAMMER2 specific "-o I" 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 I=get:/path/to/file /dev/adx --
    $ makefs -t hammer2 -o I=get:/path/to/file /path/to/hammer2.img --
    
    The "-o I" option requires inode command name argument, which is
    currently only "get". "get" takes `:<inode_path>` string after command
    name. "get" is equivalent to hammer2(8) printinode directive.

Summary of changes:
 usr.sbin/makefs/hammer2.c               | 155 +++++++++++++++++++++++++++++++-
 usr.sbin/makefs/hammer2.h               |   3 +
 usr.sbin/makefs/hammer2/hammer2.h       |   1 +
 usr.sbin/makefs/hammer2/hammer2_inode.c |   4 +-
 usr.sbin/makefs/hammer2/hammer2_ioctl.c |   4 +-
 usr.sbin/makefs/makefs.8                |   9 +-
 6 files changed, 171 insertions(+), 5 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list