diff options
-rw-r--r-- | misc/ChangeLog | 6 | ||||
-rw-r--r-- | misc/mke2fs.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog index 3ad0f538..6a2bd51b 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,9 @@ +2005-06-30 Theodore Ts'o <tytso@mit.edu> + + * mke2fs.c (PRS): Do not support filesystems with more 2**31-1 + blocks, since there may be kernel bugs with such + filesystems. + 2005-06-26 Theodore Ts'o <tytso@mit.edu> * tune2fs.8.in: Fix minor typos pointed out by Benno Schulenberg. diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 49689c31..2379ddc4 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -1352,6 +1352,13 @@ static void PRS(int argc, char *argv[]) } } + if (!force && param.s_blocks_count >= (1 << 31)) { + com_err(program_name, 0, + _("Filesystem too large. No more than 2**31-1 blocks\n" + "\t (8TB using a blocksize of 4k) are currently supported.")); + exit(1); + } + if (inode_size) { if (inode_size < EXT2_GOOD_OLD_INODE_SIZE || inode_size > EXT2_BLOCK_SIZE(¶m) || |