git: sys/vfs/hammer2: Return ENOENT if PFS label not found on mount

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Sep 28 08:19:39 PDT 2020


commit 5911121152a7e8eb5a569cc0639f0c5e27bee523
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Tue Sep 29 00:24:30 2020 +0900

    sys/vfs/hammer2: Return ENOENT if PFS label not found on mount
    
    and make sbin/mount_hammer2 handle ENOENT with an error message.
    
    This can easily happen if newfs_hammer2'd with explcit label
    specification (i.e. no default label created), and the reason isn't
    obvious with just EINVAL.

Summary of changes:
 sbin/mount_hammer2/mount_hammer2.c |  7 +++++--
 sys/vfs/hammer2/hammer2_vfsops.c   | 21 ++++++++++++++-------
 2 files changed, 19 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5911121152a7e8eb5a569cc0639f0c5e27bee523


-- 
DragonFly BSD source repository



More information about the Commits mailing list