diff options
author | 2012-11-14 20:25:37 +0000 | |
---|---|---|
committer | 2012-11-26 16:01:46 -0800 | |
commit | d80a361d779a9f19498943d1ca84243209cd5647 (patch) | |
tree | 7d142c3dd3b12f5d77aa9c105482bd2a1a9e354d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 3.7-rc7 (diff) | |
download | linux-dev-d80a361d779a9f19498943d1ca84243209cd5647.tar.xz linux-dev-d80a361d779a9f19498943d1ca84243209cd5647.zip |
efi_pstore: Check remaining space with QueryVariableInfo() before writing data
[Issue]
As discussed in a thread below, Running out of space in EFI isn't a well-tested scenario.
And we wouldn't expect all firmware to handle it gracefully.
http://marc.info/?l=linux-kernel&m=134305325801789&w=2
On the other hand, current efi_pstore doesn't check a remaining space of storage at writing time.
Therefore, efi_pstore may not work if it tries to write a large amount of data.
[Patch Description]
To avoid handling the situation above, this patch checks if there is a space enough to log with
QueryVariableInfo() before writing data.
Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Acked-by: Mike Waychison <mikew@google.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions