Lines Matching refs:dirlen
1572 int dirlen;
1733 * dirlen is the size of the reply, including all XDR and must
1736 * (Include the two booleans at the end of the reply in dirlen now.)
1742 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
1744 dirlen = 2 * NFSX_UNSIGNED;
1753 dirlen += (6*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
1755 dirlen += (4*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
1756 if (dirlen > cnt) {
1816 int dirlen;
2048 * dirlen is the reply length in bytes and cannot exceed cnt.
2049 * (Include the two booleans at the end of the reply in dirlen now,
2053 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
2056 dirlen = NFSX_VERF + 2 * NFSX_UNSIGNED;
2069 while (cpos < cend && ncookies > 0 && dirlen < cnt) {
2228 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2233 dirlen += nfsm_fhtom(nd,(u_int8_t *)&nfh,0,1);
2234 dirlen += (5*NFSX_UNSIGNED+NFSX_V3POSTOPATTR);
2242 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2250 dirlen += nfsrv_putreferralattr(nd,
2261 dirlen += nfsvno_fillattr(nd, new_mp,
2267 dirlen += nfsvno_fillattr(nd, new_mp,
2275 dirlen += (3 * NFSX_UNSIGNED);
2279 if (dirlen <= cnt)
2292 * If dirlen > cnt, we must strip off the last entry. If that
2295 if (dirlen > cnt || nd->nd_repstat) {