Re: Futuer of grub/grub2 to F11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux