Symbol: nfsd
sys/fs/nfs/client/nfs_clrpcops.c
1004
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1032
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1150
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1193
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1295
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1411
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1413
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
142
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1586
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1587
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1766
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1911
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
1960
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
208
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
2203
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
2281
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
2438
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
2502
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
2563
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
2642
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
2706
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
3134
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
3620
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
3673
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
385
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4052
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4130
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4191
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4230
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4231
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4268
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4306
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4307
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4374
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4375
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4406
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4452
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4482
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4483
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4567
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4568
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4661
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4662
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4686
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4687
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4714
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4869
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
4870
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
5030
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
5089
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
5413
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
5414
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
5687
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
5689
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
5732
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
5733
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
583
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
5894
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
646
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
784
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
826
struct nfsrv_descript nfsd;
sys/fs/nfs/client/nfs_clrpcops.c
827
struct nfsrv_descript *nd = &nfsd;
sys/fs/nfs/client/nfs_clstate.c
4114
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/client/nfs_clstate.c
4179
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/fs/nfs/common/nfs_commonsubs.c
3144
struct nfsrv_descript nfsd;
sys/fs/nfs/common/nfs_commonsubs.c
3155
nd = &nfsd;
sys/fs/nfs/server/nfs_nfsdport.c
3437
DECLARE_MODULE(nfsd, nfsd_mod, SI_SUB_VFS, SI_ORDER_ANY);
sys/fs/nfs/server/nfs_nfsdport.c
3440
MODULE_VERSION(nfsd, 1);
sys/fs/nfs/server/nfs_nfsdport.c
3441
MODULE_DEPEND(nfsd, nfscommon, 1, 1, 1);
sys/fs/nfs/server/nfs_nfsdport.c
3442
MODULE_DEPEND(nfsd, nfslock, 1, 1, 1);
sys/fs/nfs/server/nfs_nfsdport.c
3443
MODULE_DEPEND(nfsd, nfslockd, 1, 1, 1);
sys/fs/nfs/server/nfs_nfsdport.c
3444
MODULE_DEPEND(nfsd, krpc, 1, 1, 1);
sys/fs/nfs/server/nfs_nfsdport.c
3445
MODULE_DEPEND(nfsd, nfssvc, 1, 1, 1);
sys/fs/nfs/server/nfs_nfsdport.c
58
FEATURE(nfsd, "NFSv4 server");
sys/fs/nfs/server/nfs_nfsdport.c
98
SYSCTL_NODE(_vfs, OID_AUTO, nfsd, CTLFLAG_RW, 0, "NFS server");
sys/fs/nfs/server/nfs_nfsdstate.c
4087
struct nfsrv_descript nfsd, *nd = &nfsd;
sys/nfs/nfs.h
203
struct nfsd *nsd_nfsd; /* Pointer to in kernel nfsd struct */
sys/nfs/nfs.h
489
SLIST_ENTRY(nfsd) nfsd_idle; /* List of idle nfsd's */
sys/nfs/nfs.h
560
extern SLIST_HEAD(nfsdidlehead, nfsd) nfsd_idle_head;
sys/nfs/nfs_serv.c
1066
struct nfsrv_descript *wp, *nfsd, *owp, *swp;
sys/nfs/nfs_serv.c
1086
nfsd = *ndp;
sys/nfs/nfs_serv.c
1088
mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
1089
md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1090
dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1091
cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
1092
v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1093
LIST_INIT(&nfsd->nd_coalesce);
sys/nfs/nfs_serv.c
1094
nfsd->nd_mreq = NULL;
sys/nfs/nfs_serv.c
1095
nfsd->nd_stable = NFSV3WRITE_FILESYNC;
sys/nfs/nfs_serv.c
1098
nfsd->nd_time = cur_usec + nfsrvw_procrastinate;
sys/nfs/nfs_serv.c
1103
nfsm_srvmtofh(&nfsd->nd_fh);
sys/nfs/nfs_serv.c
1106
nfsd->nd_off = fxdr_hyper(tl);
sys/nfs/nfs_serv.c
1108
nfsd->nd_stable = fxdr_unsigned(int, *tl++);
sys/nfs/nfs_serv.c
1111
nfsd->nd_off = (off_t)fxdr_unsigned(u_int32_t, *++tl);
sys/nfs/nfs_serv.c
1115
nfsd->nd_len = len;
sys/nfs/nfs_serv.c
1116
nfsd->nd_eoff = nfsd->nd_off + len;
sys/nfs/nfs_serv.c
1151
nfsd->nd_mreq = mreq;
sys/nfs/nfs_serv.c
1152
nfsd->nd_mrep = NULL;
sys/nfs/nfs_serv.c
1153
nfsd->nd_time = 0;
sys/nfs/nfs_serv.c
1162
while (wp && wp->nd_time < nfsd->nd_time) {
sys/nfs/nfs_serv.c
1167
LIST_INSERT_AFTER(owp, nfsd, nd_tq);
sys/nfs/nfs_serv.c
1169
LIST_INSERT_HEAD(&slp->ns_tq, nfsd, nd_tq);
sys/nfs/nfs_serv.c
1171
if (nfsd->nd_mrep) {
sys/nfs/nfs_serv.c
1172
wpp = nfsrv_nwdelayhash(slp, &nfsd->nd_fh);
sys/nfs/nfs_serv.c
1175
while (wp && nfsrv_comparefh(&nfsd->nd_fh, &wp->nd_fh)) {
sys/nfs/nfs_serv.c
1179
while (wp && wp->nd_off < nfsd->nd_off &&
sys/nfs/nfs_serv.c
1180
!nfsrv_comparefh(&nfsd->nd_fh, &wp->nd_fh)) {
sys/nfs/nfs_serv.c
1185
LIST_INSERT_AFTER(owp, nfsd, nd_hash);
sys/nfs/nfs_serv.c
1191
for(; nfsd && NFSW_CONTIG(owp, nfsd); nfsd = wp) {
sys/nfs/nfs_serv.c
1192
wp = LIST_NEXT(nfsd, nd_hash);
sys/nfs/nfs_serv.c
1193
if (nfsrv_samecred(owp->nd_cr, nfsd->nd_cr))
sys/nfs/nfs_serv.c
1194
nfsrvw_coalesce(owp, nfsd);
sys/nfs/nfs_serv.c
1197
LIST_INSERT_HEAD(wpp, nfsd, nd_hash);
sys/nfs/nfs_serv.c
1211
for (nfsd = LIST_FIRST(&slp->ns_tq); nfsd; nfsd = owp) {
sys/nfs/nfs_serv.c
1212
owp = LIST_NEXT(nfsd, nd_tq);
sys/nfs/nfs_serv.c
1213
if (nfsd->nd_time > cur_usec)
sys/nfs/nfs_serv.c
1215
if (nfsd->nd_mreq)
sys/nfs/nfs_serv.c
1217
LIST_REMOVE(nfsd, nd_tq);
sys/nfs/nfs_serv.c
1218
LIST_REMOVE(nfsd, nd_hash);
sys/nfs/nfs_serv.c
1221
mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
1222
nfsd->nd_mrep = NULL;
sys/nfs/nfs_serv.c
1223
cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
1224
v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1226
error = nfsrv_fhtovp(&nfsd->nd_fh, 1, &vp, cred, slp,
sys/nfs/nfs_serv.c
1227
nfsd->nd_nam, &rdonly, (nfsd->nd_flag & ND_KERBAUTH),
sys/nfs/nfs_serv.c
1245
if (nfsd->nd_stable == NFSV3WRITE_UNSTABLE)
sys/nfs/nfs_serv.c
1247
else if (nfsd->nd_stable == NFSV3WRITE_DATASYNC)
sys/nfs/nfs_serv.c
1252
uiop->uio_offset = nfsd->nd_off;
sys/nfs/nfs_serv.c
1253
uiop->uio_resid = nfsd->nd_eoff - nfsd->nd_off;
sys/nfs/nfs_serv.c
1291
swp = nfsd;
sys/nfs/nfs_serv.c
1305
*tl++ = txdr_unsigned(nfsd->nd_len);
sys/nfs/nfs_serv.c
1321
nfsd->nd_mreq = mreq;
sys/nfs/nfs_serv.c
1322
if (nfsd->nd_mrep)
sys/nfs/nfs_serv.c
1330
if (nfsd != swp) {
sys/nfs/nfs_serv.c
1331
nfsd->nd_time = 0;
sys/nfs/nfs_serv.c
1332
LIST_INSERT_HEAD(&slp->ns_tq, nfsd, nd_tq);
sys/nfs/nfs_serv.c
1334
nfsd = LIST_FIRST(&swp->nd_coalesce);
sys/nfs/nfs_serv.c
1335
if (nfsd) {
sys/nfs/nfs_serv.c
1336
LIST_REMOVE(nfsd, nd_tq);
sys/nfs/nfs_serv.c
1339
} while (nfsd);
sys/nfs/nfs_serv.c
1354
LIST_FOREACH(nfsd, &slp->ns_tq, nd_tq) {
sys/nfs/nfs_serv.c
1355
if (nfsd->nd_mreq) {
sys/nfs/nfs_serv.c
1356
LIST_REMOVE(nfsd, nd_tq);
sys/nfs/nfs_serv.c
1357
*mrq = nfsd->nd_mreq;
sys/nfs/nfs_serv.c
1358
*ndp = nfsd;
sys/nfs/nfs_serv.c
1375
nfsrvw_coalesce(struct nfsrv_descript *owp, struct nfsrv_descript *nfsd)
sys/nfs/nfs_serv.c
1383
LIST_REMOVE(nfsd, nd_hash);
sys/nfs/nfs_serv.c
1384
LIST_REMOVE(nfsd, nd_tq);
sys/nfs/nfs_serv.c
1385
if (owp->nd_eoff < nfsd->nd_eoff) {
sys/nfs/nfs_serv.c
1386
overlap = owp->nd_eoff - nfsd->nd_off;
sys/nfs/nfs_serv.c
1390
m_adj(nfsd->nd_mrep, overlap);
sys/nfs/nfs_serv.c
1394
mp->m_next = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
1395
owp->nd_eoff = nfsd->nd_eoff;
sys/nfs/nfs_serv.c
1397
m_freem(nfsd->nd_mrep);
sys/nfs/nfs_serv.c
1398
nfsd->nd_mrep = NULL;
sys/nfs/nfs_serv.c
1399
if (nfsd->nd_stable == NFSV3WRITE_FILESYNC)
sys/nfs/nfs_serv.c
1401
else if (nfsd->nd_stable == NFSV3WRITE_DATASYNC &&
sys/nfs/nfs_serv.c
1404
LIST_INSERT_HEAD(&owp->nd_coalesce, nfsd, nd_tq);
sys/nfs/nfs_serv.c
1409
while ((m = LIST_FIRST(&nfsd->nd_coalesce)) != NULL) {
sys/nfs/nfs_serv.c
1420
nfsrv_create(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
1422
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1423
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1424
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1425
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
1436
int v3 = (nfsd->nd_flag & ND_NFSV3), how, exclusive_flag = 0;
sys/nfs/nfs_serv.c
1452
lwp, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
163
nfsrv3_access(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
165
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
166
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1663
nfsrv_mknod(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
1665
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1666
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1667
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1668
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
167
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
168
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
1692
lwp, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
1818
nfsrv_remove(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
1820
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1821
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1822
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1823
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
1829
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
184
(nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
1847
lwp, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
1899
nfsrv_rename(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
1901
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1902
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1903
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1904
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
1911
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1940
lwp, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
2011
lwp, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
2167
nfsrv_link(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
2169
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2170
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2171
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2172
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
2178
int getret = 1, v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2190
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
2206
lwp, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
226
nfsrv_getattr(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
2266
nfsrv_symlink(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
2268
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2269
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2270
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2271
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
228
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2282
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
229
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2296
lwp, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
230
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
231
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
2410
nfsrv_mkdir(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
2412
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2413
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2414
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2415
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
2425
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2439
lwp, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
246
(nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
2535
nfsrv_rmdir(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
2537
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2538
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2539
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
254
nfsm_reply(NFSX_FATTR(nfsd->nd_flag & ND_NFSV3));
sys/nfs/nfs_serv.c
2540
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
2545
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2561
lwp, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
257
nfsm_build(fp, struct nfs_fattr *, NFSX_FATTR(nfsd->nd_flag & ND_NFSV3));
sys/nfs/nfs_serv.c
266
nfsrv_setattr(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
2668
nfsrv_readdir(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
2670
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2671
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2672
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2673
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
268
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
269
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2690
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
270
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
271
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
2712
xfer = NFS_SRVMAXDATA(nfsd);
sys/nfs/nfs_serv.c
2721
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
281
int v3 = (nfsd->nd_flag & ND_NFSV3), gcheck = 0;
sys/nfs/nfs_serv.c
2933
nfsrv_readdirplus(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
2935
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2936
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2937
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2938
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
2972
xfer = NFS_SRVMAXDATA(nfsd);
sys/nfs/nfs_serv.c
2984
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
3268
nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
3270
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
3271
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
3272
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
3273
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
3293
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
3326
nfsrv_statfs(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
3328
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
3329
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
3330
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
3331
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
3338
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
334
(nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
3348
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
3396
nfsrv_fsinfo(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
3398
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
3399
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
3400
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
3401
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
3418
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
3466
nfsrv_pathconf(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
3468
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
3469
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
3470
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
3471
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
3487
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
3528
nfsrv_null(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
3531
struct mbuf *mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
3547
nfsrv_noop(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
3550
struct mbuf *mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
3556
if (nfsd->nd_repstat)
sys/nfs/nfs_serv.c
3557
error = nfsd->nd_repstat;
sys/nfs/nfs_serv.c
393
nfsrv_lookup(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
395
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
396
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
397
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
398
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
410
int v3 = (nfsd->nd_flag & ND_NFSV3), pubflag;
sys/nfs/nfs_serv.c
426
lwp, (nfsd->nd_flag & ND_KERBAUTH), pubflag);
sys/nfs/nfs_serv.c
524
nfsrv_readlink(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
526
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
527
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
528
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
529
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
538
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
578
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
622
nfsrv_read(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
624
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
625
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
626
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
627
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
635
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
657
reqlen = MIN(reqlen, NFS_SRVMAXDATA(nfsd));
sys/nfs/nfs_serv.c
659
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_serv.c
846
nfsrv_write(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
sys/nfs/nfs_serv.c
848
struct mbuf *mrep = nfsd->nd_mrep, *md = nfsd->nd_md;
sys/nfs/nfs_serv.c
849
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
850
char *dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
851
kauth_cred_t cred = nfsd->nd_cr;
sys/nfs/nfs_serv.c
864
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
928
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), false);
sys/nfs/nfs_socket.c
1005
nfs_getreq(struct nfsrv_descript *nd, struct nfsd *nfsd, int has_header)
sys/nfs/nfs_socket.c
1136
*((u_int32_t *)nfsd->nfsd_authstr) = *tl;
sys/nfs/nfs_socket.c
1138
nfsd->nfsd_authlen = uio.uio_resid + NFSX_UNSIGNED;
sys/nfs/nfs_socket.c
1148
iov.iov_base = (void *)&nfsd->nfsd_authstr[4];
sys/nfs/nfs_socket.c
1168
memcpy(nfsd->nfsd_verfstr, cp, 3 * NFSX_UNSIGNED);
sys/nfs/nfs_socket.c
1169
nfsd->nfsd_verflen = 3 * NFSX_UNSIGNED;
sys/nfs/nfs_socket.c
1171
nfsd->nfsd_flag |= NFSD_NEEDAUTH;
sys/nfs/nfs_socket.c
1193
LIST_FOREACH(nuidp, NUIDHASH(nfsd->nfsd_slp, nickuid),
sys/nfs/nfs_socket.c
1243
((nfsd->nfsd_flag & NFSD_NEEDAUTH) != 0));
sys/nfs/nfs_srvsocket.c
379
nfsrv_dorec(struct nfssvc_sock *slp, struct nfsd *nfsd,
sys/nfs/nfs_srvsocket.c
416
error = nfs_getreq(nd, nfsd, true);
sys/nfs/nfs_srvsocket.c
423
nfsd->nfsd_nd = nd;
sys/nfs/nfs_srvsocket.c
465
struct nfsd *nd;
sys/nfs/nfs_subs.c
1632
nfsm_srvwcc(struct nfsrv_descript *nfsd, int before_ret, struct vattr *before_vap, int after_ret, struct vattr *after_vap, struct mbuf **mbp, char **bposp)
sys/nfs/nfs_subs.c
1652
nfsm_srvpostopattr(nfsd, after_ret, after_vap, mbp, bposp);
sys/nfs/nfs_subs.c
1656
nfsm_srvpostopattr(struct nfsrv_descript *nfsd, int after_ret, struct vattr *after_vap, struct mbuf **mbp, char **bposp)
sys/nfs/nfs_subs.c
1670
nfsm_srvfattr(nfsd, after_vap, fp);
sys/nfs/nfs_subs.c
1677
nfsm_srvfattr(struct nfsrv_descript *nfsd, struct vattr *vap, struct nfs_fattr *fp)
sys/nfs/nfs_subs.c
1683
if (nfsd->nd_flag & ND_NFSV3) {
sys/nfs/nfs_syscalls.c
112
static struct nfsd *nfsd_bake_cookie(struct nfsd *);
sys/nfs/nfs_syscalls.c
113
static void nfsd_toss_cookie(struct nfsd *);
sys/nfs/nfs_syscalls.c
114
static struct nfsd *nfsd_get(struct nfsd *);
sys/nfs/nfs_syscalls.c
125
.rbto_node_offset = offsetof(struct nfsd, nfsd_node),
sys/nfs/nfs_syscalls.c
131
const struct nfsd *na = va;
sys/nfs/nfs_syscalls.c
132
const struct nfsd *nb = vb;
sys/nfs/nfs_syscalls.c
144
const struct nfsd *n = vn;
sys/nfs/nfs_syscalls.c
161
static struct nfsd *
sys/nfs/nfs_syscalls.c
162
nfsd_bake_cookie(struct nfsd *nfsd)
sys/nfs/nfs_syscalls.c
168
nfsd->nfsd_cookie = cprng_fast32();
sys/nfs/nfs_syscalls.c
169
} while (nfsd->nfsd_cookie == 0 ||
sys/nfs/nfs_syscalls.c
170
rb_tree_insert_node(&nfsd_tree, nfsd) != nfsd);
sys/nfs/nfs_syscalls.c
172
return (struct nfsd *)(uintptr_t)nfsd->nfsd_cookie;
sys/nfs/nfs_syscalls.c
181
nfsd_toss_cookie(struct nfsd *nfsd)
sys/nfs/nfs_syscalls.c
185
KASSERT(nfsd->nfsd_cookie != 0);
sys/nfs/nfs_syscalls.c
187
rb_tree_remove_node(&nfsd_tree, nfsd);
sys/nfs/nfs_syscalls.c
188
nfsd->nfsd_cookie = 0; /* paranoia */
sys/nfs/nfs_syscalls.c
202
static struct nfsd *
sys/nfs/nfs_syscalls.c
203
nfsd_get(struct nfsd *nfsdu)
sys/nfs/nfs_syscalls.c
207
struct nfsd *nfsd;
sys/nfs/nfs_syscalls.c
215
nfsd = rb_tree_find_node(&nfsd_tree, &key);
sys/nfs/nfs_syscalls.c
218
return nfsd;
sys/nfs/nfs_syscalls.c
297
struct nfsd *nfsd = NULL;
sys/nfs/nfs_syscalls.c
369
(nfsd = nfsd_get(nsd->nsd_nfsd)) == NULL)
sys/nfs/nfs_syscalls.c
372
nfsd != NULL &&
sys/nfs/nfs_syscalls.c
373
(nfsd->nfsd_slp->ns_flags & SLP_VALID)) {
sys/nfs/nfs_syscalls.c
374
slp = nfsd->nfsd_slp;
sys/nfs/nfs_syscalls.c
384
(!nfsd->nfsd_nd->nd_nam2 ||
sys/nfs/nfs_syscalls.c
386
&nuidp->nu_haddr, nfsd->nfsd_nd->nd_nam2)))
sys/nfs/nfs_syscalls.c
391
nfsd->nfsd_nd->nd_cr = nuidp->nu_cr;
sys/nfs/nfs_syscalls.c
392
nfsd->nfsd_nd->nd_flag |= ND_KERBFULL;
sys/nfs/nfs_syscalls.c
424
if (nfsd->nfsd_nd->nd_nam2) {
sys/nfs/nfs_syscalls.c
427
saddr = mtod(nfsd->nfsd_nd->nd_nam2,
sys/nfs/nfs_syscalls.c
438
nfsd->nfsd_nd->nd_nam2, 0,
sys/nfs/nfs_syscalls.c
451
nfsd->nfsd_nd->nd_cr = nuidp->nu_cr;
sys/nfs/nfs_syscalls.c
452
nfsd->nfsd_nd->nd_flag |= ND_KERBFULL;
sys/nfs/nfs_syscalls.c
457
nfsd != NULL)
sys/nfs/nfs_syscalls.c
458
nfsd->nfsd_flag |= NFSD_AUTHFAIL;
sys/nfs/nfs_syscalls.c
598
struct nfsd *nfsd;
sys/nfs/nfs_syscalls.c
615
nfsd = kmem_alloc(sizeof(*nfsd), KM_SLEEP);
sys/nfs/nfs_syscalls.c
616
memset(nfsd, 0, sizeof (struct nfsd));
sys/nfs/nfs_syscalls.c
617
cv_init(&nfsd->nfsd_cv, "nfsd");
sys/nfs/nfs_syscalls.c
618
nfsd->nfsd_procp = p;
sys/nfs/nfs_syscalls.c
624
nsd->nsd_nfsd = nfsd_bake_cookie(nfsd);
sys/nfs/nfs_syscalls.c
627
} else if ((nfsd = nfsd_get(nsd->nsd_nfsd)) == NULL) {
sys/nfs/nfs_syscalls.c
630
KASSERT(nfsd != NULL);
sys/nfs/nfs_syscalls.c
631
KASSERT(nsd->nsd_nfsd != (struct nfsd *)(uintptr_t)0);
sys/nfs/nfs_syscalls.c
641
if (nfsd->nfsd_slp == NULL) {
sys/nfs/nfs_syscalls.c
643
while (nfsd->nfsd_slp == NULL &&
sys/nfs/nfs_syscalls.c
645
SLIST_INSERT_HEAD(&nfsd_idle_head, nfsd,
sys/nfs/nfs_syscalls.c
647
error = cv_wait_sig(&nfsd->nfsd_cv, &nfsd_lock);
sys/nfs/nfs_syscalls.c
649
slp = nfsd->nfsd_slp;
sys/nfs/nfs_syscalls.c
650
nfsd->nfsd_slp = NULL;
sys/nfs/nfs_syscalls.c
653
nfsd, nfsd, nfsd_idle);
sys/nfs/nfs_syscalls.c
662
if (nfsd->nfsd_slp == NULL &&
sys/nfs/nfs_syscalls.c
672
nfsd->nfsd_slp = slp;
sys/nfs/nfs_syscalls.c
676
KASSERT(nfsd->nfsd_slp == NULL ||
sys/nfs/nfs_syscalls.c
677
nfsd->nfsd_slp->ns_sref > 0);
sys/nfs/nfs_syscalls.c
679
if ((slp = nfsd->nfsd_slp) == NULL)
sys/nfs/nfs_syscalls.c
690
error = nfsrv_dorec(slp, nfsd, &nd, &more);
sys/nfs/nfs_syscalls.c
714
slp = nfsd->nfsd_slp;
sys/nfs/nfs_syscalls.c
717
KASSERT(nfsd->nfsd_slp == slp);
sys/nfs/nfs_syscalls.c
723
nfsd->nfsd_slp = NULL;
sys/nfs/nfs_syscalls.c
738
if (nfsd->nfsd_flag & NFSD_NEEDAUTH) {
sys/nfs/nfs_syscalls.c
739
nfsd->nfsd_flag &= ~NFSD_NEEDAUTH;
sys/nfs/nfs_syscalls.c
742
nsd->nsd_authlen = nfsd->nfsd_authlen;
sys/nfs/nfs_syscalls.c
743
nsd->nsd_verflen = nfsd->nfsd_verflen;
sys/nfs/nfs_syscalls.c
744
if (!copyout(nfsd->nfsd_authstr,
sys/nfs/nfs_syscalls.c
745
nsd->nsd_authstr, nfsd->nfsd_authlen) &&
sys/nfs/nfs_syscalls.c
746
!copyout(nfsd->nfsd_verfstr,
sys/nfs/nfs_syscalls.c
747
nsd->nsd_verfstr, nfsd->nfsd_verflen) &&
sys/nfs/nfs_syscalls.c
755
if (nfsd->nfsd_flag & NFSD_AUTHFAIL) {
sys/nfs/nfs_syscalls.c
756
nfsd->nfsd_flag &= ~NFSD_AUTHFAIL;
sys/nfs/nfs_syscalls.c
841
nfsd->nfsd_slp = NULL;
sys/nfs/nfs_syscalls.c
876
if (nfsrv_dorec(slp, nfsd, &nd, &dummy)) {
sys/nfs/nfs_syscalls.c
877
nfsd->nfsd_slp = NULL;
sys/nfs/nfs_syscalls.c
883
nfsd_toss_cookie(nfsd);
sys/nfs/nfs_syscalls.c
888
cv_destroy(&nfsd->nfsd_cv);
sys/nfs/nfs_syscalls.c
889
kmem_free(nfsd, sizeof(*nfsd));
sys/nfs/nfs_syscalls.c
890
KASSERT(nsd->nsd_nfsd != (struct nfsd *)(uintptr_t)0);
sys/nfs/nfs_syscalls.c
891
nsd->nsd_nfsd = (struct nfsd *)(uintptr_t)0;
sys/nfs/nfs_var.h
186
int nfs_getreq(struct nfsrv_descript *, struct nfsd *, int);
sys/nfs/nfs_var.h
191
int nfsrv_dorec(struct nfssvc_sock *, struct nfsd *, struct nfsrv_descript **,
sys/nfs/nfs_var.h
51
struct nfsd;
sys/nfs/nfsm_subs.h
442
nfsd->nd_repstat = error; \
sys/nfs/nfsm_subs.h
443
if (error && !(nfsd->nd_flag & ND_NFSV3)) \
sys/nfs/nfsm_subs.h
444
(void) nfs_rephead(0, nfsd, slp, error, cache, &frev, \
sys/nfs/nfsm_subs.h
447
(void) nfs_rephead((s), nfsd, slp, error, cache, &frev, \
sys/nfs/nfsm_subs.h
452
if (error && (!(nfsd->nd_flag & ND_NFSV3) || \
sys/nfs/nfsm_subs.h
461
nfsd->nd_repstat = error; \
sys/nfs/nfsm_subs.h
463
(void) nfs_rephead(0, nfsd, slp, error, cache, &frev, \
sys/nfs/nfsm_subs.h
466
(void) nfs_rephead((s), nfsd, slp, error, cache, &frev, \
sys/nfs/nfsm_subs.h
482
if (nfsd->nd_flag & ND_NFSV3) { \
sys/nfs/nfsm_subs.h
520
nfsm_srvfattr(nfsd, (a), (f))
sys/nfs/nfsm_subs.h
523
nfsm_srvwcc(nfsd, (br), (b), (ar), (a), &mb, &bpos)
sys/nfs/nfsm_subs.h
526
nfsm_srvpostopattr(nfsd, (r), (a), &mb, &bpos)