Whamcloud - gitweb
Make debugfs's stat command print the size of the extra inode fields,
authorTheodore Ts'o <tytso@mit.edu>
Mon, 21 Mar 2005 06:08:10 +0000 (01:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 21 Mar 2005 06:08:10 +0000 (01:08 -0500)
if any.

debugfs/ChangeLog
debugfs/debugfs.c

index db5d0bf..aae7aca 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-21  Theodore Ts'o  <tytso@mit.edu>
+
+       * debugfs.c (internal_dump_inode_extra): Print the size of
+               the inode's extra fields.
+
 2005-03-20  Theodore Ts'o  <tytso@mit.edu>
 
        * util.c (debugfs_write_new_inode): New function
index 6d18ef9..ca73c99 100644 (file)
@@ -431,6 +431,7 @@ void internal_dump_inode_extra(FILE *out, const char *prefix,
        int storage_size;
        int i;
 
+       fprintf(out, "Size of extra inode fields: %d\n", inode->i_extra_isize);
        if (inode->i_extra_isize > EXT2_INODE_SIZE(current_fs->super) -
                        EXT2_GOOD_OLD_INODE_SIZE) {
                fprintf(stderr, "invalid inode->i_extra_isize (%u)\n",