Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsserver/nfs_nfsdserv.c
Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | if (nd->nd_flag & ND_NFSV4) { | ||||
} else | } else | ||||
at_root = 0; | at_root = 0; | ||||
vfs_ref(mp); | vfs_ref(mp); | ||||
NFSVOPUNLOCK(vp); | NFSVOPUNLOCK(vp); | ||||
if (at_root != 0) { | if (at_root != 0) { | ||||
if ((nd->nd_repstat = | if ((nd->nd_repstat = | ||||
NFSVOPLOCK(tvp, LK_SHARED)) == 0) { | NFSVOPLOCK(tvp, LK_SHARED)) == 0) { | ||||
nd->nd_repstat = VOP_GETATTR( | nd->nd_repstat = VOP_GETATTR( | ||||
tvp, &va, nd->nd_cred); | tvp, 0, &va, nd->nd_cred); | ||||
vput(tvp); | vput(tvp); | ||||
} else | } else | ||||
vrele(tvp); | vrele(tvp); | ||||
if (nd->nd_repstat == 0) | if (nd->nd_repstat == 0) | ||||
mounted_on_fileno = (uint64_t) | mounted_on_fileno = (uint64_t) | ||||
va.va_fileid; | va.va_fileid; | ||||
else | else | ||||
at_root = 0; | at_root = 0; | ||||
▲ Show 20 Lines • Show All 5,904 Lines • Show Last 20 Lines |