summaryrefslogtreecommitdiff
path: root/debugfs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-04-18 09:40:26 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-04-18 09:40:26 -0400
commit81624c3c7b4784f6651e807994db4792a49112eb (patch)
treeaaa6f39a1c995eec1e9679a5ff886e5222b1da34 /debugfs
parent38e7385e74258301d0fc6604c0e259c2807f8357 (diff)
downloade2fsprogs-81624c3c7b4784f6651e807994db4792a49112eb.tar.gz
debugfs: Print 64-bit file acl
This is necessary so we can debug filesystem corruptions caused by the i_file_acl bogusly getting set. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'debugfs')
-rw-r--r--debugfs/debugfs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 95781d9b..83acf924 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -581,9 +581,11 @@ void internal_dump_inode(FILE *out, const char *prefix,
inode->i_file_acl, LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0,
inode->osd1.hurd1.h_i_translator);
else
- fprintf(out, "%sFile ACL: %d Directory ACL: %d\n",
+ fprintf(out, "%sFile ACL: %llu Directory ACL: %d\n",
prefix,
- inode->i_file_acl, LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0);
+ inode->i_file_acl | ((long long)
+ (inode->osd2.linux2.l_i_file_acl_high) << 32),
+ LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0);
if (os == EXT2_OS_LINUX)
fprintf(out, "%sLinks: %d Blockcount: %llu\n",
prefix, inode->i_links_count,