Whamcloud - gitweb
debugfs: decode and dump xattrs on inode stat
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 13 Apr 2012 18:55:45 +0000 (12:55 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 19 Apr 2022 00:16:07 +0000 (18:16 -0600)
commit20b63c2992186e90777e08a96b8d2a8d30ce2a9d
tree1bed07bfbc067825a187462b65b6c3a8125459a8
parent7cf65606cdb2e5ff0014c1d831a32c1c41f94076
debugfs: decode and dump xattrs on inode stat

Decode and print Access Control Lists in debugfs stat/ea_list.

Print the Lustre "fid", "lma", and "link" xattr contents,
if present, with "debugfs stat" to simplify debugging.
Add "layout_version" and "range" values when printing a
trusted.fid xattr.

Increase the size of xattrs hex-dumped from 40 to 120.  But as
Lustre encrypted inodes may contain illegal characters in their
names, it is also needed to escape non-printable characters in
linkEA.

Change-Id: I3ee35ddb02582ab66d4e25ff76fae35935b54508
Reviewed-on: https://review.whamcloud.com/43384
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
24 files changed:
debugfs/Makefile.in
debugfs/debugfs.8.in
debugfs/debugfs.h
debugfs/xattrs.c
lib/ext2fs/ext2fs.h
lib/ext2fs/ext4_acl.h
lib/ext2fs/ext_attr.c
lib/ext2fs/lfsck.h
misc/fuse2fs.c
tests/d_print_acl/expect [new file with mode: 0644]
tests/d_print_acl/script [new file with mode: 0644]
tests/d_trusted_fid/expect [new file with mode: 0644]
tests/d_trusted_fid/image.gz [new file with mode: 0644]
tests/d_trusted_fid/name [new file with mode: 0644]
tests/d_trusted_fid/script [new file with mode: 0644]
tests/d_trusted_link/expect [new file with mode: 0644]
tests/d_trusted_link/image.gz [new file with mode: 0644]
tests/d_trusted_link/name [new file with mode: 0644]
tests/d_trusted_link/script [new file with mode: 0644]
tests/d_xattr_edits/expect
tests/filter.sed
tests/m_rootdir_acl/expect
tests/m_rootdir_acl/script
tests/test_post