Re: [RFC][PATCH v2 2/3] Hold multiple logs

From: Matthew Garrett
Date: Tue Jul 24 2012 - 14:18:30 EST


On Tue, Jul 24, 2012 at 05:52:25PM +0000, Luck, Tony wrote:
> if (QueryVariableInfo says enough space)
> pstore saves log as new record
> else
> we consider over-write options to re-use an existing record, or just drop this one

I'd lean towards saying drop, and rely on userspace to do something
useful. Personal experience is that if two oopses are unrelated then
there's enough time for userspace to do something and remove the
existing record, and if they're related it's the first one that tells
you where the problem actually is.

One thing that's worth noting - UEFI systems will typically only recover
deleted space on reset. create->delete->create->delete will reduce
available space until the platform is rebooted, at which point the
deleted portion will become available again.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/