From 81624c3c7b4784f6651e807994db4792a49112eb Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 18 Apr 2009 09:40:26 -0400 Subject: [PATCH] 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" --- debugfs/debugfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index 95781d9..83acf92 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, -- 1.8.3.1