Whamcloud - gitweb
Fix ext2fs_read_inode_full() so that the whole inode is byte-swapped
authorKalpak Shah <kalpak@clusterfs.com>
Sat, 23 Jun 2007 02:32:43 +0000 (22:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2007 02:32:43 +0000 (22:32 -0400)
Signed-off-by: Kalpak Shah <kalpak@clusterfs.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ChangeLog
lib/ext2fs/inode.c

index 8ee5d83..7be87c8 100644 (file)
@@ -1,5 +1,8 @@
 2007-06-22  Theodore Tso  <tytso@mit.edu>
 
+       * inode.c (ext2fs_read_inode_full): Pass in bufsize so the full
+               inode is byte-swapped.
+
        * swapfs.c (ext2fs_swap_inode_full): Fix byte-swapping issues for
                i_extra_size field.
 
index e977c73..03d1be0 100644 (file)
@@ -586,7 +586,7 @@ errcode_t ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino,
            (fs->flags & EXT2_FLAG_SWAP_BYTES_READ))
                ext2fs_swap_inode_full(fs, (struct ext2_inode_large *) inode, 
                                       (struct ext2_inode_large *) inode, 
-                                      0, length);
+                                      0, bufsize);
 #endif
 
        /* Update the inode cache */