Source-Changes-HG archive

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

[src/ad-namecache]: src/sys/miscfs/nullfs Copy the IMNT_SHRLOOKUP flag from l...



details:   https://anonhg.NetBSD.org/src/rev/fa8e689e2e42
branches:  ad-namecache
changeset: 1025037:fa8e689e2e42
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Jan 22 12:04:36 2020 +0000

description:
Copy the IMNT_SHRLOOKUP flag from lowerrootvp's mount.

diffstat:

 sys/miscfs/nullfs/null_vfsops.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 25f38638e79e -r fa8e689e2e42 sys/miscfs/nullfs/null_vfsops.c
--- a/sys/miscfs/nullfs/null_vfsops.c   Wed Jan 22 12:00:18 2020 +0000
+++ b/sys/miscfs/nullfs/null_vfsops.c   Wed Jan 22 12:04:36 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: null_vfsops.c,v 1.96.2.1 2020/01/19 21:21:55 ad Exp $  */
+/*     $NetBSD: null_vfsops.c,v 1.96.2.2 2020/01/22 12:04:36 ad Exp $  */
 
 /*
  * Copyright (c) 1999 National Aeronautics & Space Administration
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: null_vfsops.c,v 1.96.2.1 2020/01/19 21:21:55 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: null_vfsops.c,v 1.96.2.2 2020/01/22 12:04:36 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -140,7 +140,8 @@
        /* Create the mount point. */
        nmp = kmem_zalloc(sizeof(struct null_mount), KM_SLEEP);
        mp->mnt_data = nmp;
-       mp->mnt_iflag |= IMNT_MPSAFE | IMNT_SHRLOOKUP;
+       mp->mnt_iflag |= IMNT_MPSAFE;
+       mp->mnt_iflag |= lowerrootvp->v_mount->mnt_iflag & IMNT_SHRLOOKUP;
 
        /*
         * Make sure that the mount point is sufficiently initialized



Home | Main Index | Thread Index | Old Index