diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-01-19 14:22:52 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-01-19 14:29:08 -0500 |
commit | d3a8fc5ae68477118e32813230518bf4ccc73bf9 (patch) | |
tree | 63ec1d3a61c100be8acd81e45cda73ff4bd13cb3 /lib | |
parent | 9227c5bbbd0861878ae73f7dceb4deb9e9f06a3c (diff) | |
download | e2fsprogs-d3a8fc5ae68477118e32813230518bf4ccc73bf9.tar.gz |
ext2fs_block_iterate2: Reflect errors from ext2fs_extent_set_bmap to caller
If the callback function tries to change a block, and
ext2fs_extent_set_bmap() fails for some reason (for example, there
isn't enough disk space to split a node and expand the extent tree,
make sure that error is reflected back up to the caller.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ext2fs/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/block.c b/lib/ext2fs/block.c index b19c450d..51fdd9ad 100644 --- a/lib/ext2fs/block.c +++ b/lib/ext2fs/block.c @@ -434,7 +434,7 @@ errcode_t ext2fs_block_iterate2(ext2_filsys fs, (blk64_t) blockcnt, (blk64_t) new_blk, 0); if (ctx.errcode) - break; + goto extent_errout; } if (ret & BLOCK_ABORT) break; |