git: usr.sbin/makefs: Add HAMMER2 offline inode setcheck|setcomp support
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Jun 17 03:59:53 PDT 2023
commit 465e1141fcc3778800d5284f9dcb9b8c4873a9ac
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Sat Jun 17 00:26:21 2023 -0700
usr.sbin/makefs: Add HAMMER2 offline inode setcheck|setcomp support
This commit adds "setcheck" and "setcomp" commands to "-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=setcheck:/path/to/file:sha192 /dev/adx --
$ makefs -t hammer2 -o I=setcomp:/path/to/file:zlib:6 /path/to/hammer2.img --
"setcheck" takes `:<inode_path>:<check_algo>` string after command name.
"setcomp" takes `:<inode_path>:<comp_algo>[:<comp_level>]` string
after command name. These are equivalent to hammer2(8) setcheck and
setcomp directives.
Summary of changes:
usr.sbin/makefs/hammer2.c | 246 +++++++++++++++++++++++++++++++-
usr.sbin/makefs/hammer2.h | 1 +
usr.sbin/makefs/hammer2/hammer2.h | 1 +
usr.sbin/makefs/hammer2/hammer2_ioctl.c | 4 +-
usr.sbin/makefs/makefs.8 | 13 +-
5 files changed, 256 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/465e1141fcc3778800d5284f9dcb9b8c4873a9ac
--
DragonFly BSD source repository
More information about the Commits
mailing list