From db0452698de9bd82effaa87bf62efe6ac5084404 Mon Sep 17 00:00:00 2001 From: Artem Blagodarenko Date: Thu, 4 Jul 2019 13:54:17 +0300 Subject: [PATCH] LU-11915 deubugfs: add support for xattrs in external inodes There was "e2fsck: add support for xattrs in external inodes" before that added xattr in external inode support to utils. But it was not applied to the last e2fsprogs version for some reasons. This patch adds external inode output to debugfs that is required for conf-sanity 115 test. Change-Id: I3cfca85e2d34b54030d21fafa12be3dbf30e5b5c Signed-off-by: Artem Blagodarenko Reviewed-on: https://review.whamcloud.com/35417 Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Li Dongyang --- debugfs/xattrs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debugfs/xattrs.c b/debugfs/xattrs.c index e69a609..4ee619e 100644 --- a/debugfs/xattrs.c +++ b/debugfs/xattrs.c @@ -173,6 +173,11 @@ static int dump_attr(char *name, char *value, size_t value_len, FILE *out = data; fprintf(out, " "); + if (EXT2_HAS_INCOMPAT_FEATURE(current_fs->super, + EXT4_FEATURE_INCOMPAT_EA_INODE) && + inode_num != 0) { + fprintf(out, "inode <%u> ", inode_num); + } print_xattr(out, name, value, value_len, PRINT_XATTR_STATFMT); if (!strncmp(name, EXT2_ATTR_INDEX_TRUSTED_PREFIX LUSTRE_XATTR_OST_FID, strlen(name)) || -- 1.8.3.1