Skip to contentSkip to conversation

Limitation of EXT2 sector block size

DISCUSSION Tommy Lau Ho Chuen 1 participant 1 message Apr 17, 2002 VFS

lore
Share & tools
lore
#0 lore raw

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:[<c0139ebc>] 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: [<c013835e>] [<c01385cc>] [<c0138606>] [<c0163f46>] [<c012e49c>]
[<c013b36c>] [<c013b97d>] [<c014c9e3>] [<c0114a00>] [<c0107074>]
[<c014cc7c>]
[<c014caeb>] [<c014cd44>] [<c0106f63>]
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