summaryrefslogtreecommitdiff
path: root/fs/pstore
diff options
context:
space:
mode:
authorHari Bathini <hbathini@linux.vnet.ibm.com>2015-02-05 22:36:28 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2015-03-23 06:06:10 +0300
commitae011d2e48d2e6c2ae29fd8aab439caf2fbfb5a8 (patch)
tree756cb5f1bec2311ebd92feaea3f793f41e788cc8 /fs/pstore
parent78989f0a5592182a3d45d869ddaafc71c8f673af (diff)
downloadlinux-ae011d2e48d2e6c2ae29fd8aab439caf2fbfb5a8.tar.xz
pstore: Add pstore type id for PPC64 opal nvram partition
This patch adds a new PPC64 partition type to be used for opal specific nvram partition. A new partition type is needed as none of the existing type matches this partition type. Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/inode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
index b32ce53d24ee..56e1ffda4d89 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -364,6 +364,9 @@ int pstore_mkfile(enum pstore_type_id type, char *psname, u64 id, int count,
case PSTORE_TYPE_PMSG:
scnprintf(name, sizeof(name), "pmsg-%s-%lld", psname, id);
break;
+ case PSTORE_TYPE_PPC_OPAL:
+ sprintf(name, "powerpc-opal-%s-%lld", psname, id);
+ break;
case PSTORE_TYPE_UNKNOWN:
scnprintf(name, sizeof(name), "unknown-%s-%lld", psname, id);
break;