git: usr.sbin/makefs: Add offline HAMMER2IOC_VERSION_GET support

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Jun 16 01:37:03 PDT 2023


commit f72350ac2762960e589952de2b21170272d29814
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Thu Jun 15 00:28:07 2023 -0700

    usr.sbin/makefs: Add offline HAMMER2IOC_VERSION_GET support
    
    The offline version get uses existing "-o V" option with no argument.
    `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 V /dev/adx --
    $ makefs -t hammer2 -o V /path/to/hammer2.img --
    
    There is no hammer2(8) directive for this as it's internally used.

Summary of changes:
 usr.sbin/makefs/hammer2.c               | 40 ++++++++++++++++++++++++++++-----
 usr.sbin/makefs/hammer2/hammer2.h       |  1 +
 usr.sbin/makefs/hammer2/hammer2_ioctl.c |  4 +++-
 usr.sbin/makefs/makefs.8                |  5 ++++-
 4 files changed, 42 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f72350ac2762960e589952de2b21170272d29814


-- 
DragonFly BSD source repository


More information about the Commits mailing list