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 <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
This commit is contained in:
Aruna Balakrishnaiah 2013-08-16 13:53:19 -07:00 • committed by Tony Luck
commit 9a4e139820
6 changed files with 11 additions and 7 deletions

View file

@ -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;