aboutsummaryrefslogtreecommitdiff
path: root/cmd/zdb
diff options
context:
space:
mode:
authorAleksa Sarai <cyphar@cyphar.com>2019-06-22 00:35:11 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2022-10-28 16:49:20 +0000
commitdbf6108b4df92341eea40d0b41792ac16eabc514 (patch)
tree80091802c43eae2db003b4ed2fa79392fd53efe7 /cmd/zdb
parente015d6cc0b60d4675c9b6d2433eed2c8ef0863e8 (diff)
downloadsrc-dbf6108b4df92341eea40d0b41792ac16eabc514.tar.gz
src-dbf6108b4df92341eea40d0b41792ac16eabc514.zip
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