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

@ -935,7 +935,7 @@ static int erst_open_pstore(struct pstore_info *psi);
static int erst_close_pstore(struct pstore_info *psi);
static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count,
struct timespec *time, char **buf,
struct pstore_info *psi);
bool *compressed, struct pstore_info *psi);
static int erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason,
u64 *id, unsigned int part, int count, bool compressed,
size_t size, struct pstore_info *psi);
@ -991,7 +991,7 @@ static int erst_close_pstore(struct pstore_info *psi)
static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count,
struct timespec *time, char **buf,
struct pstore_info *psi)
bool *compressed, struct pstore_info *psi)
{
int rc;
ssize_t len = 0;