git: usr.sbin/makefs: Add HAMMER2 offline PFS get|lookup|create|delete|snapshot support
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Jun 10 20:51:10 PDT 2023
commit 3999233bff44d400850bbb7a09c35f31470f9a24
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Sat Jun 10 01:12:06 2023 -0700
usr.sbin/makefs: Add HAMMER2 offline PFS get|lookup|create|delete|snapshot support
The offline PFS takes HAMMER2 specific "-o P" 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 P=get /dev/adx --
$ makefs -t hammer2 -o P=lookup:name /path/to/hammer2.img --
$ makefs -t hammer2 -o P=create:name /dev/adx --
$ makefs -t hammer2 -o P=delete:name /path/to/hammer2.img --
$ makefs -t hammer2 -o P=snapshot:name /dev/adx --
$ makefs -t hammer2 -o P=snapshot /path/to/hammer2.img --
The "-o P" option requires PFS command name argument, which are
"get" (alias "list"), "lookup", "create", "delete" and "snapshot".
lookup, create and delete take `:<pfs_name>` string after command name.
snapshot takes optional `:<pfs_name>` string after command name.
Use -m option (default "DATA") to specify target PFS for snapshot.
Summary of changes:
usr.sbin/makefs/hammer2.c | 264 +++++++++++++++++++++++++++++++-
usr.sbin/makefs/hammer2.h | 9 ++
usr.sbin/makefs/hammer2/hammer2.h | 6 +
usr.sbin/makefs/hammer2/hammer2_ioctl.c | 18 ++-
usr.sbin/makefs/hammer2/hammer2_subr.c | 18 ++-
usr.sbin/makefs/makefs.8 | 47 ++++--
6 files changed, 332 insertions(+), 30 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3999233bff44d400850bbb7a09c35f31470f9a24
--
DragonFly BSD source repository
More information about the Commits
mailing list