git: sbin/newfs_hammer2: Fix `-V 1' option

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Jun 3 23:18:46 PDT 2022


commit 4efe7d95b2bef41b8d3a6d1b9a134a88db637ebb
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Fri Jun 3 20:12:25 2022 +0900

    sbin/newfs_hammer2: Fix `-V 1' option
    
    It's been broken since 0b7381572b131c74051832dc251604e7f77b5a54
    which introduced multi-volumes. No one probably needed to create
    version 1 after that.
    
    Remove sanity check which isn't true when using sbin/hammer2/ondisk.c
    from newfs_hammer2(8).
    
    --
    $ newfs_hammer2 -V 1 /dev/ad3
    Volume /dev/ad3        size   5.00GB
    checkvolu header 0 0000000140000000/0000000140000000
    newfs_hammer2: Volume count 1 must be 0

Summary of changes:
 sbin/hammer2/ondisk.c | 2 --
 1 file changed, 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4efe7d95b2bef41b8d3a6d1b9a134a88db637ebb


-- 
DragonFly BSD source repository


More information about the Commits mailing list