git: sbin/mount_hammer: Fix mount(2) error handling

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Oct 10 05:46:00 PDT 2015


commit 586b3d2947ff8492a7f8bc7db8aaaba0d81c6aba
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Sep 25 21:41:52 2015 +0900

    sbin/mount_hammer: Fix mount(2) error handling
    
    Move mount(2) error handling code to a newly added function
    test_volumes().
    
    * Omit printing strcated volume names since this is obvious
      from an error message for each volume. Also note mount(2)
      could fail when open(2), read(2) and signature check, etc
      don't fail which makes this confusing (see 331432f3).
    * Add vol_count check in addition to signature check.

Summary of changes:
 sbin/mount_hammer/mount_hammer.c | 96 ++++++++++++++++++++--------------------
 1 file changed, 47 insertions(+), 49 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/586b3d2947ff8492a7f8bc7db8aaaba0d81c6aba


-- 
DragonFly BSD source repository



More information about the Commits mailing list