zdb_il.c (200724) | zdb_il.c (209962) |
---|---|
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 | 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) | 118 if (txtype == TX_WRITE2 || 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"); | 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_IS_HOLE(bp)) { 127 (void) printf("\t\t\tLSIZE 0x%llx\n", 128 (u_longlong_t)BP_GET_LSIZE(bp)); 129 } |
|
126 if (bp->blk_birth == 0) { 127 bzero(buf, sizeof (buf)); 128 } else { 129 zbookmark_t zb; 130 | 130 if (bp->blk_birth == 0) { 131 bzero(buf, sizeof (buf)); 132 } else { 133 zbookmark_t zb; 134 |
131 ASSERT3U(bp->blk_cksum.zc_word[ZIL_ZC_OBJSET], ==, 132 dmu_objset_id(zilog->zl_os)); | 135 zb.zb_objset = dmu_objset_id(zilog->zl_os); 136 zb.zb_object = lr->lr_foid; 137 zb.zb_level = 0; 138 zb.zb_blkid = -1; /* unknown */ |
133 | 139 |
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 " }, | 140 error = zio_wait(zio_read(NULL, zilog->zl_spa, 141 bp, buf, BP_GET_LSIZE(bp), NULL, NULL, 142 ZIO_PRIORITY_SYNC_READ, ZIO_FLAG_CANFAIL, &zb)); 143 if (error) 144 return; 145 } 146 data = buf + lr->lr_blkoff; 147 } else { --- 99 unchanged lines hidden (view full) --- 247 { zil_prt_rec_acl, "TX_ACL_V0 " }, 248 { zil_prt_rec_acl, "TX_ACL_ACL " }, 249 { zil_prt_rec_create, "TX_CREATE_ACL " }, 250 { zil_prt_rec_create, "TX_CREATE_ATTR " }, 251 { zil_prt_rec_create, "TX_CREATE_ACL_ATTR " }, 252 { zil_prt_rec_create, "TX_MKDIR_ACL " }, 253 { zil_prt_rec_create, "TX_MKDIR_ATTR " }, 254 { zil_prt_rec_create, "TX_MKDIR_ACL_ATTR " }, |
255 { zil_prt_rec_write, "TX_WRITE2 " }, |
|
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 --- | 256}; 257 258/* ARGSUSED */ 259static void 260print_log_record(zilog_t *zilog, lr_t *lr, void *arg, uint64_t claim_txg) 261{ 262 int txtype; 263 int verbose = MAX(dump_opt['d'], dump_opt['i']); --- 102 unchanged lines hidden --- |