Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9227c5b
)
ext2fs_block_iterate2: Reflect errors from ext2fs_extent_set_bmap to caller
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 19 Jan 2009 19:22:52 +0000
(14:22 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 19 Jan 2009 19:29:08 +0000
(14:29 -0500)
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>
lib/ext2fs/block.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/block.c
b/lib/ext2fs/block.c
index
b19c450
..
51fdd9a
100644
(file)
--- 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;