Lines Matching refs:lr

217 			char *lr = (char *)(zilc + 1);
225 bcopy(lr, dst, len);
230 char *lr = abuf->b_data;
232 zil_chain_t *zilc = (zil_chain_t *)(lr + size) - 1;
241 bcopy(lr, dst, zilc->zc_nused);
257 zil_read_log_data(zilog_t *zilog, const lr_write_t *lr, void *wbuf)
260 const blkptr_t *bp = &lr->lr_blkptr;
268 bzero(wbuf, MAX(BP_GET_LSIZE(bp), lr->lr_length));
275 SET_BOOKMARK(&zb, dmu_objset_id(zilog->zl_os), lr->lr_foid,
276 ZB_ZIL_LEVEL, lr->lr_offset / BP_GET_LSIZE(bp));
348 lr_t *lr = (lr_t *)lrp;
349 reclen = lr->lrc_reclen;
351 if (lr->lrc_seq > claim_lr_seq)
353 if ((error = parse_lr_func(zilog, lr, arg, txg)) != 0)
355 ASSERT3U(max_lr_seq, <, lr->lrc_seq);
356 max_lr_seq = lr->lrc_seq;
395 lr_write_t *lr = (lr_write_t *)lrc;
409 if (lr->lr_blkptr.blk_birth >= first_txg &&
410 (error = zil_read_log_data(zilog, lr, NULL)) != 0)
412 return (zil_claim_log_block(zilog, &lr->lr_blkptr, tx, first_txg));
427 lr_write_t *lr = (lr_write_t *)lrc;
428 blkptr_t *bp = &lr->lr_blkptr;
2011 zil_replay_error(zilog_t *zilog, lr_t *lr, int error)
2021 (u_longlong_t)lr->lrc_seq,
2022 (u_longlong_t)(lr->lrc_txtype & ~TX_CI),
2023 (lr->lrc_txtype & TX_CI) ? "CI" : "");
2029 zil_replay_log_record(zilog_t *zilog, lr_t *lr, void *zra, uint64_t claim_txg)
2033 uint64_t reclen = lr->lrc_reclen;
2034 uint64_t txtype = lr->lrc_txtype;
2037 zilog->zl_replaying_seq = lr->lrc_seq;
2039 if (lr->lrc_seq <= zh->zh_replay_seq) /* already replayed */
2042 if (lr->lrc_txg < claim_txg) /* already committed */
2049 return (zil_replay_error(zilog, lr, EINVAL));
2057 ((lr_ooo_t *)lr)->lr_foid, NULL);
2065 bcopy(lr, zr->zr_lr, reclen);
2071 error = zil_read_log_data(zilog, (lr_write_t *)lr,
2074 return (zil_replay_error(zilog, lr, error));
2078 * The log block containing this lr may have been byteswapped
2082 * the lr was byteswapped, undo it before invoking the replay vector.
2105 return (zil_replay_error(zilog, lr, error));