pstore: Add file extension to pstore file if compressed
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Fri, 16 Aug 2013 20:53:39 +0000 (13:53 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 19 Aug 2013 18:53:27 +0000 (11:53 -0700)
commit9ad2cbe0a9b88ee6ee895d03b2c63fa1252c8e52
treed1fa9f66973963feb802ba28772f9a10e2db5205
parentadb42f5e105502aff2fc4518b16ba79c203fae4f
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>
fs/pstore/inode.c
fs/pstore/internal.h
fs/pstore/platform.c