]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_logprint: Add log item printing for ATTRI and ATTRD
authorAllison Henderson <allison.henderson@oracle.com>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
commit90542cd26f4f5dce38f95344cd5aa4f0ffa2f503
treef6e2077d2876636ef1541d0292aa1d8809d39a70
parent69e72722136fc79fd1cdf77022e42c16774764b6
xfs_logprint: Add log item printing for ATTRI and ATTRD

This patch implements a new set of log printing functions to print the
ATTRI and ATTRD items and vectors in the log.  These will be used during
log dump and log recover operations.

Though most attributes are strings, the attribute operations accept
any binary payload, so we should not assume them printable.  This was
done intentionally in preparation for parent pointers.  Until parent
pointers get here, attributes have no discernible format.  So the print
routines are just a simple print or hex dump for now.

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
logprint/log_misc.c
logprint/log_print_all.c
logprint/log_redo.c
logprint/logprint.h