summaryrefslogtreecommitdiffstats
path: root/fs/pstore/internal.h
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>2013-08-16 13:53:39 -0700
committerTony Luck <tony.luck@intel.com>2013-08-19 11:53:27 -0700
commit9ad2cbe0a9b88ee6ee895d03b2c63fa1252c8e52 (patch)
treed1fa9f66973963feb802ba28772f9a10e2db5205 /fs/pstore/internal.h
parentadb42f5e105502aff2fc4518b16ba79c203fae4f (diff)
downloadlinux-9ad2cbe0a9b88ee6ee895d03b2c63fa1252c8e52.tar.bz2
pstore: Add file extension to pstore file if compressed
In case decompression fails, add a ".enc.z" to indicate the file has compressed data. This will help user space utilities to figure out the file contents. 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 'fs/pstore/internal.h')
-rw-r--r--fs/pstore/internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h
index 937d820f273c..3b3d305277c4 100644
--- a/fs/pstore/internal.h
+++ b/fs/pstore/internal.h
@@ -50,8 +50,9 @@ extern struct pstore_info *psinfo;
extern void pstore_set_kmsg_bytes(int);
extern void pstore_get_records(int);
extern int pstore_mkfile(enum pstore_type_id, char *psname, u64 id,
- int count, char *data, size_t size,
- struct timespec time, struct pstore_info *psi);
+ int count, char *data, bool compressed,
+ size_t size, struct timespec time,
+ struct pstore_info *psi);
extern int pstore_is_mounted(void);
#endif