bug-grub
[Top][All Lists]
Advanced

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

Re: [Bug-grub] grub/reiserfs/menu problem


From: Jochen Hoenicke
Subject: Re: [Bug-grub] grub/reiserfs/menu problem
Date: Sat, 20 Oct 2001 18:45:27 +0200

On Oct 20, Jason Thomas wrote:
> I'm using reiserfs with grub on a debian system with 2.4.12-ac3, it
> works for me.
> 
> if formatting with a different tool fixed yoru problem then perhaps
> there are some differences in the tools causing this.

The latest mkreiserfs tools (3.x.0k-pre) have finally put use into the
s_journal_block_count field.  They renamed it to s_journal_magic,
though, and put a random number in it.  GRUB's reiserfs driver was the
only program looking at that field to get the number of journal blocks
(and I even asked the reiserfs journalling guy if relying on that
field would be safe) :(

I fixed grub in the CVS repository.  Or you can apply this trivial
fix:

diff -u -r1.11 fsys_reiserfs.c
--- fsys_reiserfs.c     2001/09/24 08:43:38     1.11
+++ fsys_reiserfs.c     2001/10/05 13:10:56
@@ -620,8 +620,6 @@
   if (super.s_journal_block != 0)
     {
       INFO->journal_block = super.s_journal_block;
-      INFO->journal_block_count = super.s_journal_block_count;
-      if (INFO->journal_block_count == 0)
        INFO->journal_block_count = super.s_orig_journal_size;
       if (! is_power_of_two (INFO->journal_block_count))
        return 0;

  Jochen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]