Symbol: nfsd
sys/nfs/nfs.h
280
TAILQ_ENTRY(nfsd) nfsd_chain; /* List of all nfsd's */
sys/nfs/nfs.h
312
extern TAILQ_HEAD(nfsdhead, nfsd) nfsd_head;
sys/nfs/nfs.h
93
struct nfsd *nsd_nfsd; /* Pointer to in kernel nfsd struct */
sys/nfs/nfs_serv.c
1015
nfsrv_create(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
1018
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1019
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
1037
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
1038
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1039
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1040
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1043
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
1058
(void)nfsm_reply(&info, nfsd, slp, mrq, error, 0);
sys/nfs/nfs_serv.c
106
nfsm_srvmtofh1(struct nfsm_info *infop, struct nfsrv_descript *nfsd,
sys/nfs/nfs_serv.c
1076
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1079
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
115
return nfsm_reply(infop, nfsd, slp, mrq,
sys/nfs/nfs_serv.c
1174
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1190
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1205
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1218
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1272
if (nfsm_reply(&info, nfsd, slp, mrq, error, NFSX_SRVFH(info.nmi_v3) +
sys/nfs/nfs_serv.c
1278
nfsm_srvpostop_attr(nfsd, 0, &va, &info);
sys/nfs/nfs_serv.c
1280
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
1285
nfsm_srvfattr(nfsd, &va, fp);
sys/nfs/nfs_serv.c
1312
nfsrv_mknod(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
1315
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1316
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
1329
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
1330
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1331
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1332
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1335
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
1350
(void)nfsm_reply(&info, nfsd, slp, mrq, error, 0);
sys/nfs/nfs_serv.c
1361
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1364
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
140
nfsrv3_access(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
143
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
145
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
1465
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1470
nfsm_srvpostop_attr(nfsd, 0, &va, &info);
sys/nfs/nfs_serv.c
1472
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft, &info);
sys/nfs/nfs_serv.c
1495
nfsrv_remove(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
1498
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1499
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
1509
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
1510
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1511
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1512
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1517
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
1532
(void)nfsm_reply(&info, nfsd, slp, mrq, error, 0);
sys/nfs/nfs_serv.c
155
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
156
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
157
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1578
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
158
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1582
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
1595
nfsrv_rename(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
1598
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1599
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
161
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
1612
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
1613
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1614
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1615
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1618
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
1633
(void)nfsm_reply(&info, nfsd, slp, mrq, error, 0);
sys/nfs/nfs_serv.c
1658
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1661
nfsm_srvwcc(nfsd, fdirfor_ret, &fdirfor, fdiraft_ret, &fdiraft,
sys/nfs/nfs_serv.c
1663
nfsm_srvwcc(nfsd, tdirfor_ret, &tdirfor, tdiraft_ret, &tdiraft,
sys/nfs/nfs_serv.c
1671
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
173
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
176
nfsm_srvpostop_attr(nfsd, 1, NULL, &info);
sys/nfs/nfs_serv.c
1771
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1775
nfsm_srvwcc(nfsd, fdirfor_ret, &fdirfor, fdiraft_ret, &fdiraft,
sys/nfs/nfs_serv.c
1777
nfsm_srvwcc(nfsd, tdirfor_ret, &tdirfor, tdiraft_ret, &tdiraft,
sys/nfs/nfs_serv.c
1806
nfsrv_link(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
1809
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1811
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
1821
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
1822
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1823
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1824
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1827
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
1834
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
1849
(void)nfsm_reply(&info, nfsd, slp, mrq, error, 0);
sys/nfs/nfs_serv.c
1855
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1859
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
1860
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
1911
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
1915
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
1916
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
1928
nfsrv_symlink(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
1931
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
1932
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
1946
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
1947
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
1948
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
1949
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
1952
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
1967
(void)nfsm_reply(&info, nfsd, slp, mrq, error, 0);
sys/nfs/nfs_serv.c
201
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
204
nfsm_srvpostop_attr(nfsd, getret, &va, &info);
sys/nfs/nfs_serv.c
2060
if (nfsm_reply(&info, nfsd, slp, mrq, error, NFSX_SRVFH(info.nmi_v3) +
sys/nfs/nfs_serv.c
2066
nfsm_srvpostop_attr(nfsd, 0, &va, &info);
sys/nfs/nfs_serv.c
2068
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
2095
nfsrv_mkdir(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
2098
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2099
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
2111
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
2112
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2113
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2114
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2117
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
2132
(void)nfsm_reply(&info, nfsd, slp, mrq, error, 0);
sys/nfs/nfs_serv.c
2149
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
215
nfsrv_getattr(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
2152
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
218
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2198
if (nfsm_reply(&info, nfsd, slp, mrq, error, NFSX_SRVFH(info.nmi_v3) +
sys/nfs/nfs_serv.c
220
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
2204
nfsm_srvpostop_attr(nfsd, 0, &va, &info);
sys/nfs/nfs_serv.c
2206
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
2211
nfsm_srvfattr(nfsd, &va, fp);
sys/nfs/nfs_serv.c
2231
nfsrv_rmdir(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
2234
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2235
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
2245
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
2246
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2247
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2248
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2251
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
2266
(void)nfsm_reply(&info, nfsd, slp, mrq, error, 0);
sys/nfs/nfs_serv.c
2284
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2287
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
229
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
230
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
231
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
232
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2332
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2336
nfsm_srvwcc(nfsd, dirfor_ret, &dirfor, diraft_ret, &diraft,
sys/nfs/nfs_serv.c
235
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
2381
nfsrv_readdir(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
2384
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2385
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
2401
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
2402
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2403
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2404
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2407
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
2430
xfer = NFS_SRVMAXDATA(nfsd);
sys/nfs/nfs_serv.c
244
if (nfsm_reply(&info, nfsd, slp, mrq, error, 0) != 0)
sys/nfs/nfs_serv.c
2443
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2446
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
2456
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2459
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
2491
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2494
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
2507
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
251
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2513
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
252
NFSX_FATTR(nfsd->nd_flag & ND_NFSV3)) != 0)
sys/nfs/nfs_serv.c
2546
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2551
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
258
fp = nfsm_build(&info.nmi_mb, NFSX_FATTR(nfsd->nd_flag & ND_NFSV3));
sys/nfs/nfs_serv.c
259
nfsm_srvfattr(nfsd, &va, fp);
sys/nfs/nfs_serv.c
2608
nfsrv_readdirplus(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
2611
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2612
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
2630
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
2631
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2632
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2633
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2636
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
2652
xfer = NFS_SRVMAXDATA(nfsd);
sys/nfs/nfs_serv.c
2665
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2668
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
2677
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
268
nfsrv_setattr(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
2680
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
271
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2712
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2715
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
2728
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
273
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
2732
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
2775
if (nfsm_reply(&info, nfsd, slp, mrq, error, cnt) != 0)
sys/nfs/nfs_serv.c
2777
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
2843
nfsm_srvfattr(nfsd, vap, fp);
sys/nfs/nfs_serv.c
286
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
287
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2872
nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
2875
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2876
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
288
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2888
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
2889
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
289
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2890
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2891
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2894
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
2916
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2919
nfsm_srvwcc(nfsd, for_ret, &bfor, aft_ret, &aft, &info);
sys/nfs/nfs_serv.c
292
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
2927
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2930
nfsm_srvwcc(nfsd, for_ret, &bfor, aft_ret, &aft, &info);
sys/nfs/nfs_serv.c
2946
nfsrv_statfs(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
2949
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
2950
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
2963
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
2964
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
2965
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
2966
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
2969
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
2978
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2981
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
2989
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
2993
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
3030
nfsrv_fsinfo(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
3033
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
3034
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
3044
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
3045
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
3046
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
3047
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
3050
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
3059
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
3062
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
3068
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
3071
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
3105
nfsrv_pathconf(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
3108
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
3109
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
3120
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
3121
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
3122
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
3123
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
3126
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
3135
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
3138
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
3151
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
3154
nfsm_srvpostop_attr(nfsd, getret, &at, &info);
sys/nfs/nfs_serv.c
3181
nfsrv_null(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
3188
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
3189
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
3190
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
3191
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
3194
if (nfsm_reply(&info, nfsd, slp, mrq, error, 0) != 0)
sys/nfs/nfs_serv.c
3203
nfsrv_noop(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
3210
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
3211
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
3212
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
3213
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
3216
if (nfsd->nd_repstat)
sys/nfs/nfs_serv.c
3217
error = nfsd->nd_repstat;
sys/nfs/nfs_serv.c
3220
if (nfsm_reply(&info, nfsd, slp, mrq, error, 0) != 0)
sys/nfs/nfs_serv.c
353
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
356
nfsm_srvwcc(nfsd, preat_ret, &preat, postat_ret, &va, &info);
sys/nfs/nfs_serv.c
368
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
371
nfsm_srvwcc(nfsd, preat_ret, &preat, postat_ret, &va,
sys/nfs/nfs_serv.c
401
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
405
nfsm_srvwcc(nfsd, preat_ret, &preat, postat_ret, &va,
sys/nfs/nfs_serv.c
411
nfsm_srvfattr(nfsd, &va, fp);
sys/nfs/nfs_serv.c
442
nfsrv_lookup(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
445
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
446
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
454
int v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
457
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
459
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
460
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
461
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
464
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
479
(void)nfsm_reply(&info, nfsd, slp, mrq, error, 0);
sys/nfs/nfs_serv.c
493
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
496
nfsm_srvpostop_attr(nfsd, dirattr_ret, &dirattr, &info);
sys/nfs/nfs_serv.c
508
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
513
nfsm_srvpostop_attr(nfsd, dirattr_ret, &dirattr, &info);
sys/nfs/nfs_serv.c
519
nfsm_srvpostop_attr(nfsd, 0, &va, &info);
sys/nfs/nfs_serv.c
520
nfsm_srvpostop_attr(nfsd, dirattr_ret, &dirattr, &info);
sys/nfs/nfs_serv.c
523
nfsm_srvfattr(nfsd, &va, fp);
sys/nfs/nfs_serv.c
533
nfsrv_readlink(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
536
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
537
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
550
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
551
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
552
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
553
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
558
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
567
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
570
nfsm_srvpostop_attr(nfsd, 1, NULL, &info);
sys/nfs/nfs_serv.c
603
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
607
nfsm_srvpostop_attr(nfsd, getret, &attr, &info);
sys/nfs/nfs_serv.c
630
nfsrv_read(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
633
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
634
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
650
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
651
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
652
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
653
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
656
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
679
if (reqlen > (NFS_SRVMAXDATA(nfsd)) || reqlen <= 0) {
sys/nfs/nfs_serv.c
681
if (nfsm_reply(&info, nfsd, slp, mrq, error, 0) != 0)
sys/nfs/nfs_serv.c
711
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
786
nfsm_srvfattr(nfsd, &va, fp);
sys/nfs/nfs_serv.c
806
if (nfsm_reply(&info, nfsd, slp, mrq, error, 0) != 0)
sys/nfs/nfs_serv.c
808
nfsm_srvpostop_attr(nfsd, getret, &va, &info);
sys/nfs/nfs_serv.c
816
nfsrv_write(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
sys/nfs/nfs_serv.c
819
struct mbuf *nam = nfsd->nd_nam;
sys/nfs/nfs_serv.c
820
struct ucred *cred = &nfsd->nd_cr;
sys/nfs/nfs_serv.c
838
info.nmi_mrep = nfsd->nd_mrep;
sys/nfs/nfs_serv.c
839
info.nmi_md = nfsd->nd_md;
sys/nfs/nfs_serv.c
840
info.nmi_dpos = nfsd->nd_dpos;
sys/nfs/nfs_serv.c
841
info.nmi_v3 = (nfsd->nd_flag & ND_NFSV3);
sys/nfs/nfs_serv.c
848
if (nfsm_srvmtofh1(&info, nfsd, slp, mrq) != 0)
sys/nfs/nfs_serv.c
89
nfsm_reply(struct nfsm_info *infop, struct nfsrv_descript *nfsd,
sys/nfs/nfs_serv.c
92
nfsd->nd_repstat = error;
sys/nfs/nfs_serv.c
95
(void)nfs_rephead(statuslen, nfsd, slp, error,
sys/nfs/nfs_serv.c
959
if (nfsm_reply(&info, nfsd, slp, mrq, error,
sys/nfs/nfs_serv.c
964
nfsm_srvwcc(nfsd, forat_ret, &forat, aftat_ret, &va, &info);
sys/nfs/nfs_serv.c
985
nfsm_srvfattr(nfsd, &va, fp);
sys/nfs/nfs_serv.c
993
if (nfsm_reply(&info, nfsd, slp, mrq, error, 0) != 0)
sys/nfs/nfs_serv.c
995
nfsm_srvwcc(nfsd, forat_ret, &forat, aftat_ret, &va, &info);
sys/nfs/nfs_socket.c
1447
nfs_getreq(struct nfsrv_descript *nd, struct nfsd *nfsd, int has_header)
sys/nfs/nfs_socket.c
1812
nfsrv_dorec(struct nfssvc_sock *slp, struct nfsd *nfsd,
sys/nfs/nfs_socket.c
1839
error = nfs_getreq(nd, nfsd, 1);
sys/nfs/nfs_socket.c
1846
nfsd->nfsd_nd = nd;
sys/nfs/nfs_socket.c
1859
struct nfsd *nfsd;
sys/nfs/nfs_socket.c
1864
TAILQ_FOREACH(nfsd, &nfsd_head, nfsd_chain) {
sys/nfs/nfs_socket.c
1865
if (nfsd->nfsd_flag & NFSD_WAITING) {
sys/nfs/nfs_socket.c
1866
nfsd->nfsd_flag &= ~NFSD_WAITING;
sys/nfs/nfs_socket.c
1867
if (nfsd->nfsd_slp)
sys/nfs/nfs_socket.c
1870
nfsd->nfsd_slp = slp;
sys/nfs/nfs_socket.c
1871
wakeup_one(nfsd);
sys/nfs/nfs_srvsubs.c
238
nfsm_srvwcc(struct nfsrv_descript *nfsd, int before_ret,
sys/nfs/nfs_srvsubs.c
256
nfsm_srvpostop_attr(nfsd, after_ret, after_vap, info);
sys/nfs/nfs_srvsubs.c
260
nfsm_srvpostop_attr(struct nfsrv_descript *nfsd, int after_ret,
sys/nfs/nfs_srvsubs.c
273
nfsm_srvfattr(nfsd, after_vap, fp);
sys/nfs/nfs_srvsubs.c
278
nfsm_srvfattr(struct nfsrv_descript *nfsd, struct vattr *vap,
sys/nfs/nfs_srvsubs.c
285
if (nfsd->nd_flag & ND_NFSV3) {
sys/nfs/nfs_syscalls.c
120
int nfssvc_nfsd(struct nfsd *);
sys/nfs/nfs_syscalls.c
145
struct nfsd *nfsd;
sys/nfs/nfs_syscalls.c
193
nfsd = malloc(sizeof(*nfsd), M_NFSD, M_WAITOK|M_ZERO);
sys/nfs/nfs_syscalls.c
194
nfsd->nfsd_procp = p;
sys/nfs/nfs_syscalls.c
195
nfsd->nfsd_slp = NULL;
sys/nfs/nfs_syscalls.c
197
error = nfssvc_nfsd(nfsd);
sys/nfs/nfs_syscalls.c
323
nfssvc_nfsd(struct nfsd *nfsd)
sys/nfs/nfs_syscalls.c
336
TAILQ_INSERT_TAIL(&nfsd_head, nfsd, nfsd_chain);
sys/nfs/nfs_syscalls.c
341
if (!ISSET(nfsd->nfsd_flag, NFSD_REQINPROG)) {
sys/nfs/nfs_syscalls.c
344
error = nfsrv_getslp(nfsd);
sys/nfs/nfs_syscalls.c
348
slp = nfsd->nfsd_slp;
sys/nfs/nfs_syscalls.c
361
error = nfsrv_dorec(slp, nfsd, &nd);
sys/nfs/nfs_syscalls.c
362
SET(nfsd->nfsd_flag, NFSD_REQINPROG);
sys/nfs/nfs_syscalls.c
366
slp = nfsd->nfsd_slp;
sys/nfs/nfs_syscalls.c
374
nfsd->nfsd_slp = NULL;
sys/nfs/nfs_syscalls.c
375
CLR(nfsd->nfsd_flag, NFSD_REQINPROG);
sys/nfs/nfs_syscalls.c
407
error = (*(nfsrv3_procs[nd->nd_procnum]))(nd, slp, nfsd->nfsd_procp, &mreq);
sys/nfs/nfs_syscalls.c
479
if (nfsrv_dorec(slp, nfsd, &nd)) {
sys/nfs/nfs_syscalls.c
480
nfsd->nfsd_flag &= ~NFSD_REQINPROG;
sys/nfs/nfs_syscalls.c
481
nfsd->nfsd_slp = NULL;
sys/nfs/nfs_syscalls.c
487
TAILQ_REMOVE(&nfsd_head, nfsd, nfsd_chain);
sys/nfs/nfs_syscalls.c
488
free(nfsd, M_NFSD, sizeof(*nfsd));
sys/nfs/nfs_syscalls.c
724
nfsrv_getslp(struct nfsd *nfsd)
sys/nfs/nfs_syscalls.c
730
while (nfsd->nfsd_slp == NULL &&
sys/nfs/nfs_syscalls.c
732
nfsd->nfsd_flag |= NFSD_WAITING;
sys/nfs/nfs_syscalls.c
734
error = tsleep_nsec(nfsd, PSOCK | PCATCH, "nfsd", INFSLP);
sys/nfs/nfs_syscalls.c
740
if (nfsd->nfsd_slp == NULL &&
sys/nfs/nfs_syscalls.c
747
nfsd->nfsd_slp = slp;
sys/nfs/nfs_syscalls.c
75
int nfsrv_getslp(struct nfsd *nfsd);
sys/nfs/nfs_syscalls.c
755
if (nfsd->nfsd_slp == NULL)
sys/nfs/nfs_var.h
134
int nfsrv_dorec(struct nfssvc_sock *, struct nfsd *,