Home | History | Annotate | Download | only in common

Lines Matching refs:nd

480 newnfs_request(struct nfsrv_descript *nd, struct nfsmount *nmp,
506 m_freem(nd->nd_mreq);
540 if (nd->nd_procnum != NFSPROC_NULL) {
549 nd->nd_procnum != NFSPROC_NULL) {
551 nd->nd_flag |= ND_USEGSSNAME;
552 if ((nd->nd_flag & ND_USEGSSNAME) != 0) {
591 nd->nd_procnum != NFSPROC_NULL &&
592 (nd->nd_flag & ND_USEGSSNAME) != 0) {
614 if (nd->nd_procnum == NFSPROC_NULL)
633 m_freem(nd->nd_mreq);
645 procnum = nd->nd_procnum;
646 if ((nd->nd_flag & ND_NFSV4) &&
647 nd->nd_procnum != NFSPROC_NULL &&
648 nd->nd_procnum != NFSV4PROC_CBCOMPOUND)
655 if ((nd->nd_flag & ND_NFSV2) != 0) {
656 if (nd->nd_procnum < NFS_V3NPROCS)
657 procnum = nfsv2_procid[nd->nd_procnum];
667 if ((nd->nd_flag & ND_NFSV4) && procnum == NFSV4PROC_COMPOUND)
675 if (nd->nd_flag & ND_NFSV4) {
677 nfscl_nfs4_start_probes[nd->nd_procnum];
678 probe_procnum = nd->nd_procnum;
679 } else if (nd->nd_flag & ND_NFSV3) {
684 nfscl_nfs2_start_probes[nd->nd_procnum];
689 (probe_id, vp, nd->nd_mreq, cred,
748 nd->nd_mrep = NULL;
751 nd->nd_mreq, &nd->nd_mrep, timo, sep->nfsess_xprt);
754 nd->nd_mreq, &nd->nd_mrep, timo);
787 m_freem(nd->nd_mreq);
797 KASSERT(nd->nd_mrep != NULL, ("mrep shouldn't be NULL if no error\n"));
805 newnfs_realign(&nd->nd_mrep, M_WAITOK);
806 nd->nd_md = nd->nd_mrep;
807 nd->nd_dpos = NFSMTOD(nd->nd_md, caddr_t);
808 nd->nd_repstat = 0;
809 if (nd->nd_procnum != NFSPROC_NULL &&
810 nd->nd_procnum != NFSV4PROC_CBNULL) {
818 nd->nd_repstat = fxdr_unsigned(u_int32_t, *tl);
819 if (nd->nd_repstat >= 10000)
820 NFSCL_DEBUG(1, "proc=%d reps=%d\n", (int)nd->nd_procnum,
821 (int)nd->nd_repstat);
827 if ((nd->nd_flag & ND_NFSV4) != 0) {
830 error = nfsm_advance(nd, NFSM_RNDUP(i), -1);
880 if (nd->nd_repstat != 0) {
881 if (((nd->nd_repstat == NFSERR_DELAY ||
882 nd->nd_repstat == NFSERR_GRACE) &&
883 (nd->nd_flag & ND_NFSV4) &&
884 nd->nd_procnum != NFSPROC_DELEGRETURN &&
885 nd->nd_procnum != NFSPROC_SETATTR &&
886 nd->nd_procnum != NFSPROC_READ &&
887 nd->nd_procnum != NFSPROC_READDS &&
888 nd->nd_procnum != NFSPROC_WRITE &&
889 nd->nd_procnum != NFSPROC_WRITEDS &&
890 nd->nd_procnum != NFSPROC_OPEN &&
891 nd->nd_procnum != NFSPROC_CREATE &&
892 nd->nd_procnum != NFSPROC_OPENCONFIRM &&
893 nd->nd_procnum != NFSPROC_OPENDOWNGRADE &&
894 nd->nd_procnum != NFSPROC_CLOSE &&
895 nd->nd_procnum != NFSPROC_LOCK &&
896 nd->nd_procnum != NFSPROC_LOCKU) ||
897 (nd->nd_repstat == NFSERR_DELAY &&
898 (nd->nd_flag & ND_NFSV4) == 0) ||
899 nd->nd_repstat == NFSERR_RESOURCE) {
909 *nd->nd_slotseq = txdr_unsigned(
913 m_freem(nd->nd_mrep);
914 nd->nd_mrep = NULL;
923 if (nd->nd_repstat == ESTALE && vp != NULL) {
929 if ((nd->nd_flag & ND_NFSV4) != 0) {
966 nd->nd_flag |= ND_INCRSEQID;
973 nd->nd_flag |= ND_NOMOREDATA;
979 if ((nd->nd_repstat == NFSERR_STALECLIENTID ||
980 nd->nd_repstat == NFSERR_BADSESSION ||
981 nd->nd_repstat == NFSERR_STALESTATEID) &&
983 nd->nd_repstat = NFSERR_STALEDONTRECOVER;
992 if (nd->nd_flag & ND_NFSV4) {
993 probe_id = nfscl_nfs4_done_probes[nd->nd_procnum];
994 probe_procnum = nd->nd_procnum;
995 } else if (nd->nd_flag & ND_NFSV3) {
999 probe_id = nfscl_nfs2_done_probes[nd->nd_procnum];
1004 nd->nd_mreq, cred, probe_procnum, 0);
1008 m_freem(nd->nd_mreq);
1017 mbuf_freem(nd->nd_mrep);
1018 mbuf_freem(nd->nd_mreq);