Lines Matching refs:dirlen
2048 int dirlen;
2221 * dirlen is the size of the reply, including all XDR and must
2224 * (Include the two booleans at the end of the reply in dirlen now.)
2230 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
2232 dirlen = 2 * NFSX_UNSIGNED;
2241 dirlen += (6*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
2243 dirlen += (4*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
2244 if (dirlen > cnt) {
2305 int dirlen;
2573 * dirlen is the reply length in bytes and cannot exceed cnt.
2574 * (Include the two booleans at the end of the reply in dirlen now,
2578 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
2581 dirlen = NFSX_VERF + 2 * NFSX_UNSIGNED;
2596 while (cpos < cend && ncookies > 0 && dirlen < cnt) {
2778 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2782 dirlen += nfsm_fhtom(NULL, nd, (u_int8_t *)&nfh,
2784 dirlen += (5*NFSX_UNSIGNED+NFSX_V3POSTOPATTR);
2791 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2799 dirlen += nfsrv_putreferralattr(nd,
2810 dirlen += nfsvno_fillattr(nd, new_mp,
2816 dirlen += nfsvno_fillattr(nd, new_mp,
2824 dirlen += (3 * NFSX_UNSIGNED);
2828 if (dirlen <= cnt)
2841 * If dirlen > cnt, we must strip off the last entry. If that
2844 if (dirlen > cnt || nd->nd_repstat) {