Update and clarify man pages (addresses Debian Bug #145044).
Let e2fsck allow use of the TEA hash.
Mke2fs will no longer abort if it can't zero blocks at the end of the
filesystem. (Addresses Debian Bug #155007)
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 22d1ae7..0f5f1e0 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -404,10 +404,9 @@
if (next_update_incr < 1)
next_update_incr = 1;
for (j=0; j < num; j += STRIDE_LENGTH, blk += STRIDE_LENGTH) {
- if (num-j > STRIDE_LENGTH)
+ count = num - j;
+ if (count > STRIDE_LENGTH)
count = STRIDE_LENGTH;
- else
- count = num - j;
retval = io_channel_write_blk(fs->io, blk, count, buf);
if (retval) {
if (ret_count)
@@ -1340,9 +1339,8 @@
if (retval) {
com_err(program_name, retval,
- _("zeroing block %u at end of filesystem"),
+ _("while zeroing block %u at end of filesystem"),
ret_blk);
- exit(1);
}
write_inode_tables(fs);
create_root_dir(fs);