From: Theodore Ts'o Date: Fri, 28 Jan 2005 00:12:05 +0000 (-0500) Subject: mke2fs.c (PRS): Don't use a blocksize greater than 4k, even on X-Git-Tag: E2FSPROGS-1_36~17 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8430203590b285aec03706ad05cab261c8011104;p=tools%2Fe2fsprogs.git mke2fs.c (PRS): Don't use a blocksize greater than 4k, even on 2.6 kernels, unless explicitly requested by the user; not all 2.6 kernels (includeing stock 2.6 kernels as of this writing) don't support blocksizes > 4k. --- diff --git a/misc/ChangeLog b/misc/ChangeLog index 65387a1..33fffb3 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,5 +1,10 @@ 2005-01-27 Theodore Ts'o + * mke2fs.c (PRS): Don't use a blocksize greater than 4k, even on + 2.6 kernels, unless explicitly requested by the user; not + all 2.6 kernels (includeing stock 2.6 kernels as of this + writing) don't support blocksizes > 4k. + * mke2fs.c (PRS): If the device size is too big to be expressed using a 1k blocksize, retry with a 4k blocksize. (Addresses Sourceforge bug #1106631) diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 4a428e7..03d163b 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -166,8 +166,8 @@ struct mke2fs_defaults { { default_str, 3, 1024, 8192 }, { "journal", 0, 4096, 8192 }, { "news", 0, 4096, 4096 }, - { "largefile", 0, DEF_MAX_BLOCKSIZE, 1024 * 1024 }, - { "largefile4", 0, DEF_MAX_BLOCKSIZE, 4096 * 1024 }, + { "largefile", 0, 4096, 1024 * 1024 }, + { "largefile4", 0, 4096, 4096 * 1024 }, { 0, 0, 0, 0}, };