Futuer of grub/grub2 to F11

Eric Sandeen sandeen at redhat.com
Sun Dec 28 01:39:20 UTC 2008


Callum Lerwick wrote:
> On Sat, 2008-12-27 at 12:00 -0600, Eric Sandeen wrote:
>> On a 256mb filesystem the journal will only be 32mb by default.  Still a
>> chunk of the fs, but not half! :)
> 
> Hmmm, I think this has changed over the years, but it seems the recent
> code looks like this:
> 
> int ext2fs_default_journal_size(__u64 blocks)
> {
>    if (blocks < 2048)
>       return -1;
>    if (blocks < 32768)
>       return (1024);
>    if (blocks < 256*1024)
>       return (4096);
>    if (blocks < 512*1024)
>       return (8192);
>    if (blocks < 1024*1024)
>       return (16384);
>    return 32768;
> }
> 
> It's based on block size. So on a 256mb filesystem, the block size
> defaults to 1k, and you get an 8mb journal.

You're right, I used 4k blocks in my napkin-sketch, oops :)


-Eric




More information about the fedora-devel-list mailing list