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/3526e0cef7e8
branches:  trunk
changeset: 458986:3526e0cef7e8
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 fc2d204111a7 -r 3526e0cef7e8 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