Messages in this thread | | | From | "Luck, Tony" <> | Subject | RE: [RFC][PATCH v2 2/3] Hold multiple logs | Date | Tue, 24 Jul 2012 17:52:25 +0000 |
| |
> I talked with Matthew a bit privately and he suggested to use QueryVariableInfo service which is supported in EFI 2.0 or later. > If we can use it, we know the remaining NVRAM space before calling SetVariable.
So we can have (pseudo)-code like this:
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
That looks like a good solution - platforms that provide enough non-volatile memory for multiple records make use of it for better diagnosis. Those that don't have available memory don't get to test their "what do we do when we run out of space" code.
-Tony
| |