git: sbin/mount_hammer: Fix/cleanup test_volumes()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Nov 3 08:48:19 PDT 2016


commit 1e297b34baab956c09003283b8b8b6900bd6cbdf
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Nov 3 23:37:09 2016 +0900

    sbin/mount_hammer: Fix/cleanup test_volumes()
    
    The requirement of this function is basically the same as
    __verify_volume() in sbin/hammer/ondisk.c, so make it
    __verify_volume() based.
    
    Note that this function doesn't necessarily print the real
    reason mount(2) failed, as shown in a comment. This function
    just takes a wild guess with sanity checks on volume header.
    The real reason is likely to be in dmesg. This originally
    didn't exist, but was added by 1a607e3e in 2009.

Summary of changes:
 sbin/mount_hammer/mount_hammer.c | 48 ++++++++++++++++++++++++++--------------
 1 file changed, 32 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1e297b34baab956c09003283b8b8b6900bd6cbdf


-- 
DragonFly BSD source repository



More information about the Commits mailing list