OSDN Git Service

mke2fs: Remove requirement for -f option for filesystems > 2**31 blocks
authorTheodore Ts'o <tytso@mit.edu>
Fri, 22 Feb 2008 20:01:03 +0000 (15:01 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 22 Feb 2008 20:01:03 +0000 (15:01 -0500)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/mke2fs.c

index 9d14bdd..96edacc 100644 (file)
@@ -1472,13 +1472,6 @@ static void PRS(int argc, char *argv[])
                }
        }
 
-       if (!force && fs_param.s_blocks_count >= ((unsigned) 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 ((blocksize > 4096) &&
            (fs_param.s_feature_compat & EXT3_FEATURE_COMPAT_HAS_JOURNAL))
                fprintf(stderr, _("\nWarning: some 2.4 kernels do not support "