Lines Matching refs:dirlen
1824 int dirlen;
1985 * dirlen is the size of the reply, including all XDR and must
1988 * (Include the two booleans at the end of the reply in dirlen now.)
1994 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
1996 dirlen = 2 * NFSX_UNSIGNED;
2005 dirlen += (6*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
2007 dirlen += (4*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
2008 if (dirlen > cnt) {
2068 int dirlen;
2308 * dirlen is the reply length in bytes and cannot exceed cnt.
2309 * (Include the two booleans at the end of the reply in dirlen now,
2313 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
2316 dirlen = NFSX_VERF + 2 * NFSX_UNSIGNED;
2329 while (cpos < cend && ncookies > 0 && dirlen < cnt) {
2497 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2502 dirlen += nfsm_fhtom(nd,(u_int8_t *)&nfh,0,1);
2503 dirlen += (5*NFSX_UNSIGNED+NFSX_V3POSTOPATTR);
2511 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2519 dirlen += nfsrv_putreferralattr(nd,
2530 dirlen += nfsvno_fillattr(nd, new_mp,
2536 dirlen += nfsvno_fillattr(nd, new_mp,
2544 dirlen += (3 * NFSX_UNSIGNED);
2548 if (dirlen <= cnt)
2561 * If dirlen > cnt, we must strip off the last entry. If that
2564 if (dirlen > cnt || nd->nd_repstat) {