zfs/cmd/zdb
patrickxia e1a6ec42d4 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:08:20 -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 15:01:28 -07:00
zdb.c zdb: add ZFS_KEYFORMAT_RAW support for -K option 2025-09-25 12:08:20 -07:00
zdb.h Add allocation profile export and zhack subcommand for import 2025-09-10 15:01:28 -07:00