aboutsummaryrefslogtreecommitdiff
path: root/cmd/zdb
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/zdb')
-rw-r--r--cmd/zdb/zdb_il.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/zdb/zdb_il.c b/cmd/zdb/zdb_il.c
index 02cc10fb7817..55df1f559f6e 100644
--- a/cmd/zdb/zdb_il.c
+++ b/cmd/zdb/zdb_il.c
@@ -128,6 +128,14 @@ zil_prt_rec_rename(zilog_t *zilog, int txtype, const void *arg)
(void) printf("%ssdoid %llu, tdoid %llu\n", tab_prefix,
(u_longlong_t)lr->lr_sdoid, (u_longlong_t)lr->lr_tdoid);
(void) printf("%ssrc %s tgt %s\n", tab_prefix, snm, tnm);
+ switch (txtype) {
+ case TX_RENAME_EXCHANGE:
+ (void) printf("%sflags RENAME_EXCHANGE\n", tab_prefix);
+ break;
+ case TX_RENAME_WHITEOUT:
+ (void) printf("%sflags RENAME_WHITEOUT\n", tab_prefix);
+ break;
+ }
}
static int
@@ -330,6 +338,8 @@ static zil_rec_info_t zil_rec_info[TX_MAX_TYPE] = {
{.zri_print = zil_prt_rec_write, .zri_name = "TX_WRITE2 "},
{.zri_print = zil_prt_rec_setsaxattr,
.zri_name = "TX_SETSAXATTR "},
+ {.zri_print = zil_prt_rec_rename, .zri_name = "TX_RENAME_EXCHANGE "},
+ {.zri_print = zil_prt_rec_rename, .zri_name = "TX_RENAME_WHITEOUT "},
};
static int