From: Tommy Lau Ho Chuen <98924107d@polyu.edu.hk> Subject: Limitation of EXT2 sector block size Date: Wed, 17 Apr 2002 14:13:27 +0800 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <3CBD1287.3080500@polyu.edu.hk> Mime-Version: 1.0 Content-Type: text/plain; charset=Big5 Content-Transfer-Encoding: 7bit Cc: 98924107@polyu.edu.hk Return-path: To: linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi all, I want to ask that can I increase the EXT2_MAX_FRAG_SIZE and EXT2_MAX_BLOCK_SIZE more than 4KB, e.g 16KB or above?? I modified the code /include/linux/ext2_fs.h and set the size is 8K. I also modified the code of mke2fs.c and support the block size up to 1MB. But I can't mount the hard drive when I used mount and display a error message. mke2fs /dev/sda1 -j -b8192 ******************************************************************************* Filesystem label= OS type: Linux Block size=8192 (log=3) Fragment size=8192 (log=3) 2242240 inodes, 2240059 blocks 112002 blocks (5.00%) reserved for the super user First data block=0 35 block groups 65536 blocks per group, 65536 fragments per group 64064 inodes per group Superblock backups stored on blocks: 65536, 196608, 327680, 458752, 589824, 1638400, 1769472 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 37 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. ******************************************************************************** mount -text2 /dev/sda1 /mnt/sda ******************************************************************************** invalid operand : 0000 CPU : 0 EIP : 0010:[] not tainted EFLAFS : 00010206 eax : 00001e00 ebx: 00000001 ecx: 00000200 edx: c12b2000 esi: 00002000 edi: 00000801 ebp: 00000000 esp: c43f9ddc ds: 0018 es: 0018 ss: 0018 Process mount (pid: 1145, stackpage=c43f9000) Stack: 00000801 00002000 00000000 c7e710000 c013835e 00000801 00000000 00002000 00000801 00000400 c7e710cc c01385cc 00000801 00000000 00002000 c0138606 00000001 00000000 ffffe000 00000801 c0163f46 00000801 00000000 00002000 Call Trace: [] [] [] [] [] [] [] [] [] [] [] [] [] [] Code: 0f 0b 83 c9 ff 41 8b 44 24 1c d3 e0 3d ff 0f 00 00 76 f2 89 Segmentation fault ******************************************************************************** If I really want to increase the block sector size of EXT2. What shall I do?? Thx and regards, Tommy