Re: [RFC] persistent store

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tony Luck
Date: Monday, November 22, 2010 - 6:37 pm

On Mon, Nov 22, 2010 at 4:06 PM, Jim Keniston
<jkenisto@linux.vnet.ibm.com> wrote:

My thoughts were that Oops were non-fatal and ended up in /var/log/messages,
so this would be unneeded (this bit of code was copied from one of mtdoops
or ramoops - which does almost the same ... they do have an option to
allow the copy - perhaps I should have copied that bit too?).

Yup - I need to do this too (I only allocate one buffer).


Yes - I assume here that the last "data_size" bytes will be enough
to be useful. But in your case it most likely won't be.  You could
lie about how much space you allow and then include some oops
parsing code to get the vital bits out of what is passed to you. Not
pretty - but it would work. If there are many such devices with limited
capacity, then it would make sense to include this parsing code
in this generic layer.


But "dmesg(8)" typically *does* allow any user to see the most recent
part of the console log - so we are not consistent about this.

-Tony
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] persistent store, Jim Keniston, (Mon Nov 22, 5:06 pm)
Re: [RFC] persistent store, Tony Luck, (Mon Nov 22, 6:37 pm)
Re: [RFC] persistent store, Tony Luck, (Mon Nov 22, 8:10 pm)
Re: [RFC] persistent store, Kyungmin Park, (Mon Nov 22, 9:30 pm)
Re: [RFC] persistent store, Jim Keniston, (Wed Nov 24, 1:35 pm)