| commit | d1b4b85c3a201705c5d3d2916c7a9ca00a04e44c | [log] [tgz] |
|---|---|---|
| author | Eric Sandeen <esandeen@redhat.com> | Tue Sep 12 14:56:18 2006 -0400 |
| committer | Theodore Ts'o <tytso@mit.edu> | Tue Sep 12 14:56:18 2006 -0400 |
| tree | 270669e0717c5d936f482839993d854426bc1236 | |
| parent | f335864338a6fbce8134a445ffdd0cdeb3f3f1bc [diff] [blame] |
Fix more rounding overflows for filesystems that have 2**32-1 blocks Signed-off-by: Eric Sandeen <esandeen@redhat.com>
diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 256c813..87ae687 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c
@@ -1260,7 +1260,7 @@ } if (!fs_type) { - int megs = fs_param.s_blocks_count * + int megs = (__u64)fs_param.s_blocks_count * (EXT2_BLOCK_SIZE(&fs_param) / 1024) / 1024; if (megs <= 3)