git: usr.sbin/makefs: Add HAMMER2 offline read / VOP_READ support
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Jun 24 02:36:33 PDT 2023
commit fc4148fe6433963760fb77515a762ce076e70282
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Fri Jun 23 23:45:51 2023 -0700
usr.sbin/makefs: Add HAMMER2 offline read / VOP_READ support
The offline read takes HAMMER2 specific "-o R" option.
`image-file` argument is a valid HAMMER2 image file or block device.
Unlike other offline commands, `directory` must be a valid directory.
e.g.
$ makefs -t hammer2 -o R=/path/to/file /dev/adx /a/b/c
$ makefs -t hammer2 -o R=/path/to/file /path/to/hammer2.img /a/b/c
The "-o R" option requires file path argument. The file is retrieved
from `image-file` and written to a file under `directory`.
In the examples above, /path/to/file is retrieved as /a/b/c/file
on success.
Summary of changes:
usr.sbin/makefs/hammer2.c | 114 ++++++++++++++++++++++++++++++++
usr.sbin/makefs/hammer2.h | 6 ++
usr.sbin/makefs/hammer2/hammer2.h | 1 +
usr.sbin/makefs/hammer2/hammer2_vnops.c | 33 ++++++++-
usr.sbin/makefs/makefs.8 | 12 +++-
5 files changed, 161 insertions(+), 5 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fc4148fe6433963760fb77515a762ce076e70282
--
DragonFly BSD source repository
More information about the Commits
mailing list