usr.sbin/makefs: Add HAMMER2 offline inode get support
commitf804c4258392d77732fa77de5f610e0580ae3cf6
authorTomohiro Kusumi <tkusumi@netbsd.org>
Fri, 16 Jun 2023 07:15:21 +0000 (16 00:15 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Fri, 16 Jun 2023 08:29:39 +0000 (16 01:29 -0700)
tree901deea8e7d3b7d2f081089d4ebf43adb5bb42b9
parentf72350ac2762960e589952de2b21170272d29814
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.
usr.sbin/makefs/hammer2.c
usr.sbin/makefs/hammer2.h
usr.sbin/makefs/hammer2/hammer2.h
usr.sbin/makefs/hammer2/hammer2_inode.c
usr.sbin/makefs/hammer2/hammer2_ioctl.c
usr.sbin/makefs/makefs.8