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>
Thu, 15 Dec 2022 22:29:58 +0000 (15:29 -0700)
commitaf9099904591a7ea82572847eefdba4eea5a93d1
treec24d0fb44a20e5b6e3e57d94a7dce636513f96b3
parent4e130805c180775b95ec44da5c156714920c3945
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>
22 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/m_rootdir_acl/expect
tests/test_post