diff options
author | Theodore Ts'o <tytso@mit.edu> | 1998-08-01 04:18:06 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1998-08-01 04:18:06 +0000 |
commit | f75c28de4731c2cd09f6ca1a23e25c968a1edc2f (patch) | |
tree | f880e8d7e8b368134ec254303d904616543be47c /lib/ext2fs/badblocks.c | |
parent | 91d6d486d259b6eb08e4999025b9ef2b097d3495 (diff) | |
download | e2fsprogs-f75c28de4731c2cd09f6ca1a23e25c968a1edc2f.tar.gz |
ChangeLog, e2fsck.c, pass2.c, pass3.c, unix.c:
pass2.c (e2fsck_pass2): Fix the progress accounting so that we get to
100%.
pass3.c (e2fsck_pass3): Change progress accounting to be consistent
with the other e2fsck passes.
e2fsck.c (e2fsck_run): At the end of each pass, call the progress
function with the pass number set to zero.
unix.c (e2fsck_update_progress): If the pass number is zero, ignore
the call, since that indicates that we just want to deallocate any
progress structures.
emptydir.c:
Commit partially done file.
ChangeLog, badblocks.c:
badblocks.c (ext2fs_badblocks_list_add): Use a bigger increment than
10 blocks when we need to expand the size of the badblocks list.
Diffstat (limited to 'lib/ext2fs/badblocks.c')
-rw-r--r-- | lib/ext2fs/badblocks.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/ext2fs/badblocks.c b/lib/ext2fs/badblocks.c index 3851ccd6..e2f46f15 100644 --- a/lib/ext2fs/badblocks.c +++ b/lib/ext2fs/badblocks.c @@ -107,11 +107,11 @@ errcode_t ext2fs_badblocks_list_add(ext2_badblocks_list bb, blk_t blk) if (bb->num >= bb->size) { old_size = bb->size * sizeof(blk_t); - bb->size += 10; + bb->size += 100; retval = ext2fs_resize_mem(old_size, bb->size * sizeof(blk_t), (void **) &bb->list); if (retval) { - bb->size -= 10; + bb->size -= 100; return retval; } } @@ -215,8 +215,3 @@ void ext2fs_badblocks_list_iterate_end(ext2_badblocks_iterate iter) iter->bb = 0; ext2fs_free_mem((void **) &iter); } - - - - - |