mirror_zfs/cmd/zdb
Rob Norris 9f874ad092 zdb: don't try to load key for unencrypted dataset
Previously using -K/--key on an unencrypted dataset would trip a VERIFY,
because the dataset has nowhere to load the key into.

Now, just ignore it. This makes zdb much easier to drive when there's a
mix of encrypt and non-encrypted datasets, as the key can provided for
all of them (at least, assuming the same encryption root, which is a
common enough case).

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris@truenas.com>
Closes #18230
2026-02-20 13:37:11 -08:00
..
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zdb_il.c Add allocation profile export and zhack subcommand for import 2025-09-10 11:13:24 -07:00
zdb.c zdb: don't try to load key for unencrypted dataset 2026-02-20 13:37:11 -08:00
zdb.h Add allocation profile export and zhack subcommand for import 2025-09-10 11:13:24 -07:00