zdb: consistent xattr output
commitdd19821149cb7e3785249eb9be75dd9864c88d56
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 May 2023 18:17:41 +0000 (8 11:17 -0700)
committerGitHub <noreply@github.com>
Mon, 8 May 2023 18:17:41 +0000 (8 11:17 -0700)
treeb102cec5befb5c29a1bae2cef6ab5de329e2d012
parent245f4a346779e29fe995f69d8eb2b724cddf5277
zdb: consistent xattr output

When using zdb to output the value of an xattr only interpret it
as printable characters if the entire byte array is printable.
Additionally, if the --parseable option is set always output the
buffer contents as octal for easy parsing.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #14830
cmd/zdb/zdb.c