Whamcloud - gitweb
debugfs: Print 64-bit file acl
authorTheodore Ts'o <tytso@mit.edu>
Sat, 18 Apr 2009 13:40:26 +0000 (09:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 Apr 2009 13:40:26 +0000 (09:40 -0400)
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>
debugfs/debugfs.c

index 95781d9..83acf92 100644 (file)
@@ -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,