diff options
author | Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> | 2013-08-16 22:53:19 +0200 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-08-19 19:18:11 +0200 |
commit | 9a4e1398208d147a9240731a1f8cfe7d8cc4c553 (patch) | |
tree | 61b16758244f641d861839887b19d5a0a144223a /drivers/firmware | |
parent | pstore: Add compression support to pstore (diff) | |
download | linux-9a4e1398208d147a9240731a1f8cfe7d8cc4c553.tar.xz linux-9a4e1398208d147a9240731a1f8cfe7d8cc4c553.zip |
pstore: Introduce new argument 'compressed' in the read callback
Backends will set the flag 'compressed' after reading the log from
persistent store to indicate the data being returned to pstore is
compressed or not.
Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/efi/efi-pstore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firmware/efi/efi-pstore.c b/drivers/firmware/efi/efi-pstore.c index fab6892f7053..9a5425f3f885 100644 --- a/drivers/firmware/efi/efi-pstore.c +++ b/drivers/firmware/efi/efi-pstore.c @@ -87,7 +87,8 @@ static int efi_pstore_read_func(struct efivar_entry *entry, void *data) static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type, int *count, struct timespec *timespec, - char **buf, struct pstore_info *psi) + char **buf, bool *compressed, + struct pstore_info *psi) { struct pstore_read_data data; |