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

Tomohiro Kusumi tkusumi at
Sat Oct 10 05:46:00 PDT 2015

commit 586b3d2947ff8492a7f8bc7db8aaaba0d81c6aba
Author: Tomohiro Kusumi <kusumi.tomohiro at>
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
    * 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(-)

DragonFly BSD source repository

More information about the Commits mailing list