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)
committerLi Dongyang <dongyangli@ddn.com>
Tue, 28 May 2024 05:53:19 +0000 (15:53 +1000)
commit4c054aaae2cb9fe0ab77dc0b9c74eaecfc5b6547
treed5b6b4b030c50d52376dab51fce1baf3842a5824
parentac3e1ccd78d66c3aecfc67f63a5caae9c12f4f9e
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