mirror_zfs/cmd/zdb
patrickxia 5c38029f4b
zdb: add ZFS_KEYFORMAT_RAW support for -K option
This change adds support for ZFS_KEYFORMAT_RAW to zdb_derive_key in 
zdb.c. The implementation reads the raw key from the file specified 
by the -K option which is consistent with how raw keys are handled in 
the other parts of ZFS, along with a check to ensure that the keyfile 
doesn't have too many bytes.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Patrick Xia <patrickx@google.com>
Closes #17783
2025-09-25 12:05:42 -07:00
..
Makefile.am build: rename FORCEDEBUG_CPPFLAGS to LIBZPOOL_CPPFLAGS 2024-08-27 12:53:27 -07:00
zdb_il.c Add allocation profile export and zhack subcommand for import 2025-09-10 11:13:24 -07:00
zdb.c zdb: add ZFS_KEYFORMAT_RAW support for -K option 2025-09-25 12:05:42 -07:00
zdb.h Add allocation profile export and zhack subcommand for import 2025-09-10 11:13:24 -07:00