Lines Matching defs:seqid
194 static int nfsrv_checkseqid(struct nfsrv_descript *nd, u_int32_t seqid,
1209 ldumpp[cnt].ndlck_stateid.seqid = stp->ls_stateid.seqid;
1251 ldumpp[cnt].ndlck_stateid.seqid = stp->ls_stateid.seqid;
1288 ldumpp[cnt].ndlck_stateid.seqid = stp->ls_stateid.seqid;
1844 if (new_stp->ls_stateid.seqid == 0x0 &&
1849 else if (new_stp->ls_stateid.seqid == 0xffffffff &&
1889 * check against the stateid, before incrementing the seqid#, since
1890 * we want to return NFSERR_BADSTATEID on failure and the seqid#
2007 * If haslock set, we've already checked the seqid.
2050 * If the seqid part of the stateid isn't the same, return
2059 if (!error && stp->ls_stateid.seqid!=new_stp->ls_stateid.seqid &&
2064 new_stp->ls_stateid.seqid != 0)))
2085 * seqid# has been updated, so we can return any error.
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;
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;
2494 stateidp->seqid = new_stp->ls_stateid.seqid = 1;
2682 stateidp->seqid == 0) ||
2683 stateidp->seqid == stp->ls_stateid.seqid) &&
2821 * the seqid# has already been incremented.
2947 stateidp->seqid == 0) ||
2948 stateidp->seqid == stp->ls_stateid.seqid) &&
3118 stp->ls_stateid.seqid = delegstateidp->seqid = 1;
3139 new_open->ls_stateid.seqid = 1;
3204 new_deleg->ls_stateid.seqid = delegstateidp->seqid = 1;
3245 new_open->ls_stateid.seqid = 1;
3300 stp->ls_stateid.seqid = 1;
3310 openstp->ls_stateid.seqid++;
3312 openstp->ls_stateid.seqid == 0)
3313 openstp->ls_stateid.seqid = 1;
3322 new_open->ls_stateid.seqid = 1;
3355 new_open->ls_stateid.seqid = 1;
3409 stateidp->seqid = openstp->ls_stateid.seqid;
3486 if (!error && stp->ls_stateid.seqid != new_stp->ls_stateid.seqid &&
3490 new_stp->ls_stateid.seqid != 0)))
3502 * seqid# and there are no byte range locks or other Opens
3517 stateidp->seqid = stp->ls_stateid.seqid + 1;
3518 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0)
3519 stateidp->seqid = 1;
3534 stp->ls_stateid.seqid++;
3536 stp->ls_stateid.seqid == 0)
3537 stp->ls_stateid.seqid = 1;
3569 stp->ls_stateid.seqid++;
3571 stp->ls_stateid.seqid == 0)
3572 stp->ls_stateid.seqid = 1;
3637 if (!error && stp->ls_stateid.seqid != stateidp->seqid &&
3638 ((nd->nd_flag & ND_NFSV41) == 0 || stateidp->seqid != 0))
4016 nfsrv_checkseqid(struct nfsrv_descript *nd, u_int32_t seqid,
4033 /* If ND_ERELOOKUP is set, the seqid has already been handled. */
4037 if ((stp->ls_seq + 1) == seqid) {
4042 stp->ls_seq = seqid;
4044 } else if (stp->ls_seq == seqid && stp->ls_op &&
4357 * not use a lock/open owner seqid#, so the check can be done now.
4523 *tl++ = txdr_unsigned(stateidp->seqid);
4556 *tl++ = txdr_unsigned(stateidp->seqid);
5705 stp->ls_stateid.seqid = stateidp->seqid;
6680 if (error == 0 && stateidp->seqid != 0 &&
6681 SEQ_LT(stateidp->seqid, stp->ls_stateid.seqid))
6855 * Not sure if the seqid must be the same, so I won't check it.
6898 if (++lyp->lay_stateid.seqid == 0)
6899 lyp->lay_stateid.seqid = 1;
6900 stateidp->seqid = lyp->lay_stateid.seqid;
7162 * The layout stateid.seqid needs to be incremented
7165 if (++lyp->lay_stateid.seqid == 0)
7166 lyp->lay_stateid.seqid = 1;
7235 * The layout stateid.seqid needs to be incremented
7238 if (++lyp->lay_stateid.seqid == 0)
7239 lyp->lay_stateid.seqid = 1;
7336 stateidp->seqid, stateidp->other[0],
7338 lyp->lay_stateid.seqid,
7344 if (++lyp->lay_stateid.seqid == 0)
7345 lyp->lay_stateid.seqid = 1;
7346 stateidp->seqid = lyp->lay_stateid.seqid;
7447 lyp->lay_stateid.seqid = stateidp->seqid = 1;
7468 if (++nlyp->lay_stateid.seqid == 0)
7469 nlyp->lay_stateid.seqid = 1;
7470 stateidp->seqid = nlyp->lay_stateid.seqid;
8407 * The layout stateid.seqid needs to be incremented
8410 if (++lyp->lay_stateid.seqid == 0)
8411 lyp->lay_stateid.seqid = 1;
8972 up_deleg->ls_stateid.seqid++;
8973 delegstateidp->seqid = up_deleg->ls_stateid.seqid;
8982 new_deleg->ls_stateid.seqid = delegstateidp->seqid = 1;