it works!
i made 2 tests with it: it works.
then i made 3 tests with following procedure:
- cp -av
- boot the bad kernel. it hangs or crashend.
- boot with the patched kernel. recovery works.
thanks!
utz
Rajagopal Ananthanarayanan [ananth@xxxxxxx] wrote:
> utz lehmann wrote:
> >
> > ok, here is the backtrace (via serial console):
> [ ... ]
> >
> > Starting XFS recovery on filesystem: ide0(3,6) (dev: 3/6)
> > kernel BUG at slab.c:1542!
> >
> [ ... ]
> >
> > what should i do next?
>
> First, the immediate BUG() is due to a bogus sized
> kmalloc being requested.
>
> Second, I've been seeing problems here with recovery;
> so far I thought it was a bug in code that I've been
> working on. But looking at your backtrace may be something
> else is broken.
>
> Looking through some recent changes, I think a bcopy
> was accidentally deleted. In file fs/xfs/xfs_log_recover.c,
> AFTER the kmem_realloc( ... ) at line 1218, can you ADD:
>
> bcopy(dp , &ptr[old_len], len); /* s, d, l */
>
> Can you please recompile & retry recovery?
>
> Thanks for your efforts in providing debug information!
>
> ananth.
>
> PS: Daniel, revision 1.195 is where the bcopy was taken out.
> It appears to be an error. Can you please check?
>
> --
> --------------------------------------------------------------------------
> Rajagopal Ananthanarayanan ("ananth")
> Member Technical Staff, SGI.
> --------------------------------------------------------------------------
|