Whamcloud - gitweb
libext2fs: only use override function when reading an 128 byte inode
authorTheodore Ts'o <tytso@mit.edu>
Mon, 22 Apr 2013 03:53:26 +0000 (23:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Apr 2013 03:53:26 +0000 (23:53 -0400)
commit572ef60b8923dc072e2644f706b25c3c92cb4bb6
tree0998cea7545e950d84b0b6b61e8ac4c76bee0cb2
parent8034d9fa0f9a06f5caeab431fe226423dc5dc7d9
libext2fs: only use override function when reading an 128 byte inode

The ext2fs_read_inode_full() function should not use fs->read_inode()
if the caller has requested more than the base 128 byte inode
structure and the inode size is greater than 128 bytes.  Otherwise the
caller won't get all of the bytes that they were asking for, since
there's no way for the fs->read_inode override function can know what
the size of the buffer passed to ext2fs_read_inode_full().

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/inode.c