]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pstore: Add pstore type id for PPC64 opal nvram partition
authorHari Bathini <hbathini@linux.vnet.ibm.com>
Thu, 5 Feb 2015 19:36:28 +0000 (01:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Mar 2015 03:06:10 +0000 (14:06 +1100)
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>
fs/pstore/inode.c
include/linux/pstore.h

index b32ce53d24ee5d7e07af71ee35873b5f7cb27ad4..56e1ffda4d8936173d70684b0e4f82ee8f8d4688 100644 (file)
@@ -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;
index 8884f6e507f7c7797b8cce98349e45f3b732a9b8..8e7a25b068b0925e4084c78f87d658d5758e518f 100644 (file)
@@ -40,6 +40,7 @@ enum pstore_type_id {
        PSTORE_TYPE_PPC_OF      = 5,
        PSTORE_TYPE_PPC_COMMON  = 6,
        PSTORE_TYPE_PMSG        = 7,
+       PSTORE_TYPE_PPC_OPAL    = 8,
        PSTORE_TYPE_UNKNOWN     = 255
 };