git: usr.sbin/makefs: Add HAMMER2 offline destroy support
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Thu Jun 8 01:39:10 PDT 2023
commit 917508cdbe01148ca55a70f784d29bf1d57b261d
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Thu Jun 8 00:46:22 2023 -0700
usr.sbin/makefs: Add HAMMER2 offline destroy support
The offline destroy takes HAMMER2 specific "-o D" 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 D=/a.out /dev/adx --
$ makefs -t hammer2 -o D=1234 /path/to/hammer2.img --
The "-o D" option reuires file path or inode number argument.
- If it's a file path, optarg must start with '/'.
- If it's an inum, optarg must start with "0x" or '0'-'9'.
Note that destroy by inum seems broken not only in makefs, but also
in real HAMMER2 ioctl.
Summary of changes:
usr.sbin/makefs/hammer2.c | 91 +++++++++++++++++++++++++++++++--
usr.sbin/makefs/hammer2.h | 7 +++
usr.sbin/makefs/hammer2/hammer2.h | 1 +
usr.sbin/makefs/hammer2/hammer2_ioctl.c | 3 --
usr.sbin/makefs/makefs.8 | 8 ++-
usr.sbin/makefs/makefs.c | 2 +-
usr.sbin/makefs/walk.c | 2 +-
7 files changed, 103 insertions(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/917508cdbe01148ca55a70f784d29bf1d57b261d
--
DragonFly BSD source repository
More information about the Commits
mailing list