Whamcloud - gitweb
libext2fs: fix bad cast which causes problems for file systems > 512EB
authorTheodore Ts'o <tytso@mit.edu>
Tue, 4 Oct 2011 03:47:19 +0000 (23:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Oct 2011 03:47:19 +0000 (23:47 -0400)
commit00ea586fb23f88da616c27d66faf210532c12b5a
tree434a3bd10b461169d5d9c6f42df4f512fd8e7467
parent466137fb7eaf6d54aa8d174054ed17eaed52eac8
libext2fs: fix bad cast which causes problems for file systems > 512EB

If the number of block groups exceeds 2**32, a bad cast would lead to
a bogus "Not enough space to build proposed filesystem while setting
up superblock" failure.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/initialize.c