HomeFreeBSD

zdb: consistent xattr output

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on May 8 2023, 6:17 PM
GitHub <noreply@github.com>Committed on May 8 2023, 6:17 PM
Parents
rG245f4a346779: ZTS: add snapshot/snapshot_002_pos exception
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGdd19821149cb: zdb: consistent xattr output (authored by Brian Behlendorf <behlendorf1@llnl.gov>).May 8 2023, 6:17 PM