ext3 enlarge blocksize
Hi Andreas,
Quoted 5 lines · Andreas
At least part of this patch can be included into the patch series that Mingming has posted to allow larger block sizes on architectures that support it. This doesn't need a separate COMPAT flag itself, since older kernels will already refuse to mount a filesystem with large blocks.
Do you mention block size? I don't use the COMPAT flag for large block size, but for >2G blocks.
Quoted 8 lines · On May 25, 2006 21:49 +0900, [email protected] wrote:
Quoted 7 lines
(quoted diff) +6
-0@@ -1463,11 +1463,17 @@ static int ext3_fill_super (struct super + if (blocksize > PAGE_SIZE) { + printk(KERN_ERR "EXT3-fs: cannot mount filesystem with " + "blocksize %u larger than PAGE_SIZE %u on %s\n", + blocksize, PAGE_SIZE, sb->s_id); + goto failed_mount; + }
Quoted 8 lines
Review static int ext3_fill_super (struct super · line 1471
Quoted 4 lines
(quoted diff) +2
-1+ if (blocksize < EXT3_MIN_BLOCK_SIZE || - blocksize > EXT3_MAX_BLOCK_SIZE) { + blocksize > EXT3_EXTENDED_MAX_BLOCK_SIZE) {We may as well just change
EXT3_MAX_BLOCK_SIZEto be 65536, because no other
code uses this value. It is already 65536 in the e2fsprogs.
Agree.
Quoted 4 lines
Review static int ext3_fill_super (struct super · line 1466
Quoted 3 lines
(quoted diff) +0
-2- printk(KERN_ERR - "EXT3-fs: Unsupported filesystemblocksize %d on %s.\n",
Quoted 8 lines
Review static int ext3_fill_super (struct super · line 1472
Quoted 2 lines
(quoted diff) +1
-1- blocksize, sb->s_id); + printk(KERN_ERR "EXT3-fs: Unsupportedfilesystem blocksize %d on %s.\n",
Review static int ext3_fill_super (struct super · line 1473
Quoted 1 line
(quoted diff) +1
-0+ blocksize, sb->s_id);I'm not sure why you changed the formatting of this message to now be longer
than 80 columns.
Oops, you are right.
Thanks a lot, Andreas!
Cheers, sho
Quoted 8 lines · On May 30, 2006 21:24 +0900, [email protected] wrote:
Quoted 5 lines · Andreas
At least part of this patch can be included into the patch series that Mingming has posted to allow larger block sizes on architectures that support it. This doesn't need a separate COMPAT flag itself, since older kernels will already refuse to mount a filesystem with large blocks.
Do you mention block size?
Yes, it just seemed confusing to be including these two items in the same patch. I was trying to indicate that the 64k block support should be submitted to Mingming as a standalone patch atop her patch series, which is the one that will be submitted for kernel inclusion.
Quoted 1 line
I don't use the COMPAT flag for large block size, but for >2G blocks.
Agreed. However, there will be a different COMPAT flag for large filesystems introduced as part of the other 48-bit ext3 changes.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.