Whamcloud - gitweb
libext2fs: fix block iterator when the callback function modifies an extent
authorTheodore Ts'o <tytso@mit.edu>
Sun, 10 Jul 2011 02:25:52 +0000 (22:25 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 10 Jul 2011 02:25:52 +0000 (22:25 -0400)
commitd8fae3cf421eb5ebc0cf8726885eb81aff0a5d1f
tree6ad1ac5ffba1f5c42b147d960a683751102c58e5
parentaf0df2aa4a073f7e1a2d58b40010ecd891e80a60
libext2fs: fix block iterator when the callback function modifies an extent

If the callback interator modifies a block in the middle of an extent
during a call to the block iterator, causing the extent to be split,
ext2_block_iterate3() will end up calling the callback function twice
for some number of blocks.  Fix this.

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