Lines Matching refs:len
137 &t, lastoff == 0 ? 0 : lastoff - lp->len)) != 0)
146 if ((ret = __log_putr(dblp, lsn, dbt, lp->lsn.offset - lp->len)) != 0)
219 hdr.len = sizeof(HDR) + dbt->size;
224 lp->len = sizeof(HDR);
229 lp->len += dbt->size;
277 t_lsn.offset = lp->lsn.offset - lp->len;
282 lsn->offset > lp->lsn.offset - lp->len)) {
355 __log_fill(dblp, lsn, addr, len)
359 u_int32_t len;
367 for (lp = dblp->lp; len > 0;) {
381 if (lp->b_off == 0 && len >= sizeof(lp->buf)) {
382 nrec = len / sizeof(lp->buf);
387 len -= nrec * sizeof(lp->buf);
393 nw = remain > len ? len : remain;
396 len -= nw;
415 __log_write(dblp, addr, len)
418 u_int32_t len;
438 (ret = __os_write(dblp->lfd, addr, len, &nw)) != 0) {
442 if (nw != (int32_t)len)
446 lp->w_off += len;
449 if ((lp->stat.st_w_bytes += len) >= MEGABYTE) {
453 if ((lp->stat.st_wc_bytes += len) >= MEGABYTE) {
467 log_file(dblp, lsn, namep, len)
471 size_t len;
485 if (len < strlen(name) + 1) {