Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern If we could not start extattr for some reason, don'...



details:   https://anonhg.NetBSD.org/src/rev/8cadee20247e
branches:  trunk
changeset: 453602:8cadee20247e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Aug 19 09:32:42 2019 +0000

description:
If we could not start extattr for some reason, don't advertise extattr in the
mount.

diffstat:

 sys/kern/vfs_mount.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 8dc42f11c16e -r 8cadee20247e sys/kern/vfs_mount.c
--- a/sys/kern/vfs_mount.c      Mon Aug 19 09:31:30 2019 +0000
+++ b/sys/kern/vfs_mount.c      Mon Aug 19 09:32:42 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_mount.c,v 1.70 2019/02/20 10:08:37 hannken Exp $   */
+/*     $NetBSD: vfs_mount.c,v 1.71 2019/08/19 09:32:42 christos Exp $  */
 
 /*-
  * Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.70 2019/02/20 10:08:37 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.71 2019/08/19 09:32:42 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -807,10 +807,11 @@
        vfs_ref(mp);
        (void) VFS_STATVFS(mp, &mp->mnt_stat);
        error = VFS_START(mp, 0);
-       if (error) {
+       if (error) {
                vrele(vp);
        } else if (flags & MNT_EXTATTR) {
-               (void)start_extattr(mp);
+               if (start_extattr(mp) != 0)
+                       mp->mnt_flag &= ~MNT_EXTATTR;
        }
        /* Drop reference held for VFS_START(). */
        vfs_rele(mp);



Home | Main Index | Thread Index | Old Index