aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2023-01-28 21:03:01 -0500
committerTheodore Ts'o <tytso@mit.edu>2023-01-28 21:03:01 -0500
commit04cee87699b32b1c4e0c41ffc5ca4540e7a3232f (patch)
tree74248dda18c70ad45c2b9c3ca01bd3f56cf4e3a2
parentcfe767c083ffc375203257175d187f6bb5f779e4 (diff)
downloade2fsprogs-04cee87699b32b1c4e0c41ffc5ca4540e7a3232f.tar.gz
debugfs: print the extended attribute's e_hash field
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--debugfs/xattrs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/debugfs/xattrs.c b/debugfs/xattrs.c
index bd114503a..cd042bc8b 100644
--- a/debugfs/xattrs.c
+++ b/debugfs/xattrs.c
@@ -430,9 +430,9 @@ static void dump_xattr_raw_entries(FILE *f, unsigned char *buf,
#else
ent = *((struct ext2_ext_attr_entry *) (buf + off));
#endif
- fprintf(f, "offset = %d (%04o), name_len = %u, "
+ fprintf(f, "offset = %d (%04o), hash = %u, name_len = %u, "
"name_index = %u\n",
- off, off, ent.e_name_len, ent.e_name_index);
+ off, off, ent.e_hash, ent.e_name_len, ent.e_name_index);
vstart = value_start + ent.e_value_offs;
fprintf(f, "value_offset = %d (%04o), value_inum = %u, "
"value_size = %u\n", ent.e_value_offs,