]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 8ee5d83a1d6f845a8e22f100470736e9dc508c87..7be87c8d9ab73be409c80257f69d04ef34474120 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 e977c73f91eb69ef97e8b01a6492f37b5b00ede0..03d1be0a193681716e663704685c07d13b6a2f9d 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 */