OSDN Git Service

Fix ext2fs_extent_set_bmap() when setting a block before the first extent
authorTheodore Ts'o <tytso@mit.edu>
Fri, 22 Aug 2008 06:32:28 +0000 (02:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 22 Aug 2008 06:43:05 +0000 (02:43 -0400)
commita9ea7285e6d97fba4fa4af059db73f0413acfcab
treefba85ac10998bce7e886a404e46d229851c335e0
parent57fd39e94339f6a60f3c1df0818e5305cdbb7569
Fix ext2fs_extent_set_bmap() when setting a block before the first extent

When setting a logical block which is before the first extent in the
extent tree, make sure the new extent goes in front, at the very
beginning of the extent tree.  This fixes a bug where previously the
new extent would be inserted out of order in this case.

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