Deleted Added
sdiff udiff text old ( 200724 ) new ( 209962 )
full compact
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 101 unchanged lines hidden (view full) ---

110 int verbose = MAX(dump_opt['d'], dump_opt['i']);
111 int error;
112
113 (void) printf("\t\t\tfoid %llu, offset 0x%llx,"
114 " length 0x%llx, blkoff 0x%llx\n",
115 (u_longlong_t)lr->lr_foid, (longlong_t)lr->lr_offset,
116 (u_longlong_t)lr->lr_length, (u_longlong_t)lr->lr_blkoff);
117
118 if (verbose < 5)
119 return;
120
121 if (lr->lr_common.lrc_reclen == sizeof (lr_write_t)) {
122 (void) printf("\t\t\thas blkptr, %s\n",
123 bp->blk_birth >= spa_first_txg(zilog->zl_spa) ?
124 "will claim" : "won't claim");
125 print_log_bp(bp, "\t\t\t");
126 if (bp->blk_birth == 0) {
127 bzero(buf, sizeof (buf));
128 } else {
129 zbookmark_t zb;
130
131 ASSERT3U(bp->blk_cksum.zc_word[ZIL_ZC_OBJSET], ==,
132 dmu_objset_id(zilog->zl_os));
133
134 zb.zb_objset = bp->blk_cksum.zc_word[ZIL_ZC_OBJSET];
135 zb.zb_object = 0;
136 zb.zb_level = -1;
137 zb.zb_blkid = bp->blk_cksum.zc_word[ZIL_ZC_SEQ];
138
139 error = zio_wait(zio_read(NULL, zilog->zl_spa,
140 bp, buf, BP_GET_LSIZE(bp), NULL, NULL,
141 ZIO_PRIORITY_SYNC_READ, ZIO_FLAG_CANFAIL, &zb));
142 if (error)
143 return;
144 }
145 data = buf + lr->lr_blkoff;
146 } else {

--- 99 unchanged lines hidden (view full) ---

246 { zil_prt_rec_acl, "TX_ACL_V0 " },
247 { zil_prt_rec_acl, "TX_ACL_ACL " },
248 { zil_prt_rec_create, "TX_CREATE_ACL " },
249 { zil_prt_rec_create, "TX_CREATE_ATTR " },
250 { zil_prt_rec_create, "TX_CREATE_ACL_ATTR " },
251 { zil_prt_rec_create, "TX_MKDIR_ACL " },
252 { zil_prt_rec_create, "TX_MKDIR_ATTR " },
253 { zil_prt_rec_create, "TX_MKDIR_ACL_ATTR " },
254};
255
256/* ARGSUSED */
257static void
258print_log_record(zilog_t *zilog, lr_t *lr, void *arg, uint64_t claim_txg)
259{
260 int txtype;
261 int verbose = MAX(dump_opt['d'], dump_opt['i']);

--- 102 unchanged lines hidden ---