Lines Matching refs:lr
68 const _lr_create_t *lr = &lrc->lr_create; in zil_prt_rec_create() local
69 time_t crtime = lr->lr_crtime[0]; in zil_prt_rec_create()
73 name = (char *)(lr + 1); in zil_prt_rec_create()
75 if (lr->lr_common.lrc_txtype == TX_CREATE_ATTR || in zil_prt_rec_create()
76 lr->lr_common.lrc_txtype == TX_MKDIR_ATTR) { in zil_prt_rec_create()
77 lrattr = (lr_attr_t *)(lr + 1); in zil_prt_rec_create()
90 tab_prefix, (u_longlong_t)lr->lr_doid, in zil_prt_rec_create()
91 (u_longlong_t)LR_FOID_GET_OBJ(lr->lr_foid), in zil_prt_rec_create()
92 (u_longlong_t)LR_FOID_GET_SLOTS(lr->lr_foid), in zil_prt_rec_create()
93 (longlong_t)lr->lr_mode); in zil_prt_rec_create()
96 (u_longlong_t)lr->lr_uid, (u_longlong_t)lr->lr_gid, in zil_prt_rec_create()
97 (u_longlong_t)lr->lr_gen, (u_longlong_t)lr->lr_rdev); in zil_prt_rec_create()
104 const lr_remove_t *lr = arg; in zil_prt_rec_remove() local
107 (u_longlong_t)lr->lr_doid, (char *)(lr + 1)); in zil_prt_rec_remove()
114 const lr_link_t *lr = arg; in zil_prt_rec_link() local
117 (u_longlong_t)lr->lr_doid, (u_longlong_t)lr->lr_link_obj, in zil_prt_rec_link()
118 (char *)(lr + 1)); in zil_prt_rec_link()
126 const _lr_rename_t *lr = &lrr->lr_rename; in zil_prt_rec_rename() local
127 char *snm = (char *)(lr + 1); in zil_prt_rec_rename()
131 (u_longlong_t)lr->lr_sdoid, (u_longlong_t)lr->lr_tdoid); in zil_prt_rec_rename()
162 const lr_write_t *lr = arg; in zil_prt_rec_write() local
164 const blkptr_t *bp = &lr->lr_blkptr; in zil_prt_rec_write()
170 (u_longlong_t)lr->lr_foid, (u_longlong_t)lr->lr_offset, in zil_prt_rec_write()
171 (u_longlong_t)lr->lr_length); in zil_prt_rec_write()
176 if (lr->lr_common.lrc_reclen == sizeof (lr_write_t)) { in zil_prt_rec_write()
199 lr->lr_foid, ZB_ZIL_LEVEL, in zil_prt_rec_write()
200 lr->lr_offset / BP_GET_LSIZE(bp)); in zil_prt_rec_write()
213 data = abd_alloc(lr->lr_length, B_FALSE); in zil_prt_rec_write()
214 abd_copy_from_buf(data, lr + 1, lr->lr_length); in zil_prt_rec_write()
219 0, MIN(lr->lr_length, (verbose < 6 ? 20 : SPA_MAXBLOCKSIZE)), in zil_prt_rec_write()
231 const lr_write_t *lr = arg; in zil_prt_rec_write_enc() local
232 const blkptr_t *bp = &lr->lr_blkptr; in zil_prt_rec_write_enc()
240 if (lr->lr_common.lrc_reclen == sizeof (lr_write_t)) { in zil_prt_rec_write_enc()
253 const lr_truncate_t *lr = arg; in zil_prt_rec_truncate() local
256 (u_longlong_t)lr->lr_foid, (longlong_t)lr->lr_offset, in zil_prt_rec_truncate()
257 (u_longlong_t)lr->lr_length); in zil_prt_rec_truncate()
264 const lr_setattr_t *lr = arg; in zil_prt_rec_setattr() local
265 time_t atime = (time_t)lr->lr_atime[0]; in zil_prt_rec_setattr()
266 time_t mtime = (time_t)lr->lr_mtime[0]; in zil_prt_rec_setattr()
269 (u_longlong_t)lr->lr_foid, (u_longlong_t)lr->lr_mask); in zil_prt_rec_setattr()
271 if (lr->lr_mask & AT_MODE) { in zil_prt_rec_setattr()
273 (longlong_t)lr->lr_mode); in zil_prt_rec_setattr()
276 if (lr->lr_mask & AT_UID) { in zil_prt_rec_setattr()
278 (u_longlong_t)lr->lr_uid); in zil_prt_rec_setattr()
281 if (lr->lr_mask & AT_GID) { in zil_prt_rec_setattr()
283 (u_longlong_t)lr->lr_gid); in zil_prt_rec_setattr()
286 if (lr->lr_mask & AT_SIZE) { in zil_prt_rec_setattr()
288 (u_longlong_t)lr->lr_size); in zil_prt_rec_setattr()
291 if (lr->lr_mask & AT_ATIME) { in zil_prt_rec_setattr()
293 (u_longlong_t)lr->lr_atime[0], in zil_prt_rec_setattr()
294 (u_longlong_t)lr->lr_atime[1], in zil_prt_rec_setattr()
298 if (lr->lr_mask & AT_MTIME) { in zil_prt_rec_setattr()
300 (u_longlong_t)lr->lr_mtime[0], in zil_prt_rec_setattr()
301 (u_longlong_t)lr->lr_mtime[1], in zil_prt_rec_setattr()
310 const lr_setsaxattr_t *lr = arg; in zil_prt_rec_setsaxattr() local
312 char *name = (char *)(lr + 1); in zil_prt_rec_setsaxattr()
314 (u_longlong_t)lr->lr_foid); in zil_prt_rec_setsaxattr()
317 if (lr->lr_size == 0) { in zil_prt_rec_setsaxattr()
322 for (int i = 0; i < lr->lr_size; i++) { in zil_prt_rec_setsaxattr()
333 const lr_acl_t *lr = arg; in zil_prt_rec_acl() local
336 (u_longlong_t)lr->lr_foid, (u_longlong_t)lr->lr_aclcnt); in zil_prt_rec_acl()
343 const lr_clone_range_t *lr = arg; in zil_prt_rec_clone_range() local
347 tab_prefix, (u_longlong_t)lr->lr_foid, (u_longlong_t)lr->lr_offset, in zil_prt_rec_clone_range()
348 (u_longlong_t)lr->lr_length, (u_longlong_t)lr->lr_blksz); in zil_prt_rec_clone_range()
353 for (unsigned int i = 0; i < lr->lr_nbps; i++) { in zil_prt_rec_clone_range()
355 (u_longlong_t)lr->lr_nbps); in zil_prt_rec_clone_range()
356 print_log_bp(&lr->lr_bps[i], ""); in zil_prt_rec_clone_range()
364 const lr_clone_range_t *lr = arg; in zil_prt_rec_clone_range_enc() local
372 for (unsigned int i = 0; i < lr->lr_nbps; i++) { in zil_prt_rec_clone_range_enc()
374 (u_longlong_t)lr->lr_nbps); in zil_prt_rec_clone_range_enc()
375 print_log_bp(&lr->lr_bps[i], ""); in zil_prt_rec_clone_range_enc()
421 print_log_record(zilog_t *zilog, const lr_t *lr, void *arg, uint64_t claim_txg) in print_log_record() argument
428 txtype = lr->lrc_txtype; in print_log_record()
431 ASSERT(lr->lrc_txg); in print_log_record()
434 (lr->lrc_txtype & TX_CI) ? "CI-" : "", in print_log_record()
436 (u_longlong_t)lr->lrc_reclen, in print_log_record()
437 (u_longlong_t)lr->lrc_txg, in print_log_record()
438 (u_longlong_t)lr->lrc_seq); in print_log_record()
442 zil_rec_info[txtype].zri_print(zilog, txtype, lr); in print_log_record()
444 zil_rec_info[txtype].zri_print_enc(zilog, txtype, lr); in print_log_record()