]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - lib/ext2fs/bmap.c
libext2fs: Fix SET_BMAP bugs in ext2fs_bmap() and ext2fs_bmap2()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 29 Nov 2009 05:08:54 +0000 (00:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Nov 2009 06:03:04 +0000 (01:03 -0500)
commit9c9e1d5fe507d08309e9815eee50ca73e21bd2bd
treea296b81b4ff217230d582173f80e5efcc3a627fd
parent4607ef7d53304c00f6259ab671e597d5493b9786
libext2fs: Fix SET_BMAP bugs in ext2fs_bmap() and ext2fs_bmap2()

Don't byte-swap the block number when setting i_block[x], since the
write_inode function will take of byte swapping the inode.

The phys_blk parameter contains an input parameter in the SET_BMAP
case, so it must be passed to ext2fs_bmap2() from the legacy function
ext2fs_bmap().

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