diff options
author | Theodore Ts'o <tytso@mit.edu> | 2006-08-30 01:57:00 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2006-08-30 01:57:00 -0400 |
commit | 69022e029f3273b3b860bf701219cd3fe615f76b (patch) | |
tree | 81ecd1b770fe3a4d8e0c325ce78bc6f0c17c927b /misc/ChangeLog | |
parent | a3e025c7493b58ec88b775f26a41e4205a6a2c9f (diff) | |
download | e2fsprogs-69022e029f3273b3b860bf701219cd3fe615f76b.tar.gz |
Fix potential 2**32-1 overflow problems by ext2fs_div_ceil()
Add a new function, ext2fs_div_ceil(), which correctly calculates a division
of two unsigned integer where the result is always rounded up the next
largest integer. This is used everywhere where we might have
previously caused an overflow when the number of blocks
or inodes is too close to 2**32-1.
Based on patches from Eric Sandeen, but generalized to use this new function
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Eric Sandeen <esandeen@redhat.com>
Diffstat (limited to 'misc/ChangeLog')
-rw-r--r-- | misc/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog index 86254330..0cecaa43 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,12 @@ +2006-08-30 Theodore Tso <tytso@mit.edu> + + * mke2fs.c (parse_extended_opts): Use ext2fs_div_ceil() instead of + a using an open-coded expression which was subject to + overflows. + + * filefrag.c (div_ceil, frag_report): Fix potential overflow for + really big filesystems. + 2006-08-06 Theodore Tso <tytso@mit.edu> * findsuper.c (main): Improve findsuper program by printing the |