summaryrefslogtreecommitdiffstats
path: root/cmd/zdb
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/zdb')
-rw-r--r--cmd/zdb/zdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c
index 7c3ef3ef4..81c9eaf8c 100644
--- a/cmd/zdb/zdb.c
+++ b/cmd/zdb/zdb.c
@@ -6781,7 +6781,7 @@ main(int argc, char **argv)
*/
spa_load_verify_dryrun = B_TRUE;
- kernel_init(FREAD);
+ kernel_init(SPA_MODE_READ);
if (dump_all)
verbose = MAX(verbose, 1);