Lines Matching defs:stateidp
156 static int nfsrv_getstate(struct nfsclient *clp, nfsv4stateid_t *stateidp,
170 nfsv4stateid_t *stateidp, int specialid);
174 nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp,
217 nfsv4stateid_t *stateidp, char *layp, int *layoutlenp, NFSPROC_T *p);
231 static int nfsrv_recalllayout(nfsquad_t clid, nfsv4stateid_t *stateidp,
1757 nfsrv_getstate(struct nfsclient *clp, nfsv4stateid_t *stateidp, __unused u_int32_t flags,
1765 hp = NFSSTATEHASH(clp, *stateidp);
1767 if (!NFSBCMP(stp->ls_stateid.other, stateidp->other,
1819 nfsquad_t clientid, nfsv4stateid_t *stateidp,
2347 stateidp->seqid = ++(stp->ls_stateid.seqid);
2348 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0)
2349 stateidp->seqid = stp->ls_stateid.seqid = 1;
2350 stateidp->other[0] = stp->ls_stateid.other[0];
2351 stateidp->other[1] = stp->ls_stateid.other[1];
2352 stateidp->other[2] = stp->ls_stateid.other[2];
2481 stateidp->seqid = ++(lckstp->ls_stateid.seqid);
2482 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0)
2483 stateidp->seqid = lckstp->ls_stateid.seqid = 1;
2484 stateidp->other[0] = lckstp->ls_stateid.other[0];
2485 stateidp->other[1] = lckstp->ls_stateid.other[1];
2486 stateidp->other[2] = lckstp->ls_stateid.other[2];
2494 stateidp->seqid = new_stp->ls_stateid.seqid = 1;
2495 stateidp->other[0] = new_stp->ls_stateid.other[0] =
2497 stateidp->other[1] = new_stp->ls_stateid.other[1] =
2499 stateidp->other[2] = new_stp->ls_stateid.other[2] =
2546 nfsrv_opencheck(nfsquad_t clientid, nfsv4stateid_t *stateidp,
2682 stateidp->seqid == 0) ||
2683 stateidp->seqid == stp->ls_stateid.seqid) &&
2684 !NFSBCMP(stateidp->other, stp->ls_stateid.other,
2801 struct nfsstate **new_stpp, nfsquad_t clientid, nfsv4stateid_t *stateidp,
2947 stateidp->seqid == 0) ||
2948 stateidp->seqid == stp->ls_stateid.seqid) &&
2949 !NFSBCMP(stateidp->other, stp->ls_stateid.other,
3409 stateidp->seqid = openstp->ls_stateid.seqid;
3410 stateidp->other[0] = openstp->ls_stateid.other[0];
3411 stateidp->other[1] = openstp->ls_stateid.other[1];
3412 stateidp->other[2] = openstp->ls_stateid.other[2];
3445 nfsv4stateid_t *stateidp, struct nfsrv_descript *nd, NFSPROC_T *p,
3517 stateidp->seqid = stp->ls_stateid.seqid + 1;
3518 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0)
3519 stateidp->seqid = 1;
3520 stateidp->other[0] = stp->ls_stateid.other[0];
3521 stateidp->other[1] = stp->ls_stateid.other[1];
3522 stateidp->other[2] = stp->ls_stateid.other[2];
3596 nfsv4stateid_t *stateidp, vnode_t vp, int op, struct ucred *cred,
3617 stateidp, 0);
3620 stateidp, 0);
3636 error = nfsrv_getstate(clp, stateidp, NFSLCK_DELEGRETURN, &stp);
3637 if (!error && stp->ls_stateid.seqid != stateidp->seqid &&
3638 ((nd->nd_flag & ND_NFSV41) == 0 || stateidp->seqid != 0))
4335 nfsv4stateid_t *stateidp, int specialid)
4349 } else if (stateidp->other[0] != NFSD_VNET(nfsrvboottime) &&
4441 nfsrv_docallback(struct nfsclient *clp, int procnum, nfsv4stateid_t *stateidp,
4523 *tl++ = txdr_unsigned(stateidp->seqid);
4524 NFSBCOPY((caddr_t)stateidp->other, (caddr_t)tl,
4556 *tl++ = txdr_unsigned(stateidp->seqid);
4557 NFSBCOPY(stateidp->other, tl, NFSX_STATEIDOTHER);
5678 nfsv4stateid_t *stateidp, struct nfsvattr *nvap, nfsattrbit_t *attrbitp,
5705 stp->ls_stateid.seqid = stateidp->seqid;
5706 clientid.lval[0] = stp->ls_stateid.other[0] = stateidp->other[0];
5707 clientid.lval[1] = stp->ls_stateid.other[1] = stateidp->other[1];
5708 stp->ls_stateid.other[2] = stateidp->other[2];
5710 stateidp, exp, nd, p);
6620 nfsrv_freestateid(struct nfsrv_descript *nd, nfsv4stateid_t *stateidp,
6636 if (!NFSBCMP(stp->ls_stateid.other, stateidp->other,
6648 error = nfsrv_getstate(clp, stateidp, 0, &stp);
6665 nfsrv_teststateid(struct nfsrv_descript *nd, nfsv4stateid_t *stateidp,
6679 error = nfsrv_getstate(clp, stateidp, 0, &stp);
6680 if (error == 0 && stateidp->seqid != 0 &&
6681 SEQ_LT(stateidp->seqid, stp->ls_stateid.seqid))
6784 nfsv4stateid_t *stateidp, int maxcnt, char *layp, int *hasnewsizep,
6804 uint64_t minlen, nfsv4stateid_t *stateidp, int maxcnt, int *retonclose,
6857 if (error == 0 && (stateidp->other[0] != lyp->lay_stateid.other[0] ||
6858 stateidp->other[1] != lyp->lay_stateid.other[1] ||
6859 stateidp->other[2] != lyp->lay_stateid.other[2])) {
6900 stateidp->seqid = lyp->lay_stateid.seqid;
6936 error = nfsrv_addlayout(nd, &lyp, stateidp, layp, layoutlenp, p);
7177 nfsrv_recalllayout(nfsquad_t clid, nfsv4stateid_t *stateidp, fhandle_t *fhp,
7193 stateidp, changed, fhp, NULL, NULL, laytype, p);
7297 int kind, nfsv4stateid_t *stateidp, int maxcnt, uint32_t *layp, int *fndp,
7330 stateidp->other[0] == lyp->lay_stateid.other[0] &&
7331 stateidp->other[1] == lyp->lay_stateid.other[1] &&
7332 stateidp->other[2] == lyp->lay_stateid.other[2]) {
7336 stateidp->seqid, stateidp->other[0],
7337 stateidp->other[1], stateidp->other[2],
7346 stateidp->seqid = lyp->lay_stateid.seqid;
7369 stateidp->other[0] ==
7371 stateidp->other[1] ==
7373 stateidp->other[2] ==
7428 nfsv4stateid_t *stateidp, char *layp, int *layoutlenp, NFSPROC_T *p)
7447 lyp->lay_stateid.seqid = stateidp->seqid = 1;
7448 lyp->lay_stateid.other[0] = stateidp->other[0] =
7450 lyp->lay_stateid.other[1] = stateidp->other[1] =
7452 lyp->lay_stateid.other[2] = stateidp->other[2] =
7470 stateidp->seqid = nlyp->lay_stateid.seqid;
7471 stateidp->other[0] = nlyp->lay_stateid.other[0];
7472 stateidp->other[1] = nlyp->lay_stateid.other[1];
7473 stateidp->other[2] = nlyp->lay_stateid.other[2];