summaryrefslogtreecommitdiffstats
path: root/fs/pstore/inode.c
diff options
context:
space:
mode:
authorAruna Balakrishnaiah2013-06-05 20:52:10 +0200
committerBenjamin Herrenschmidt2013-06-20 09:04:59 +0200
commitf33f748c964f6a6ee272b1c794b52f54f4da1d04 (patch)
treecb755efb8c8fa22fed3e2e537e1854468ff5d612 /fs/pstore/inode.c
parentpowerpc/pseries: Distinguish between a os-partition and non-os partition (diff)
downloadkernel-qcow2-linux-f33f748c964f6a6ee272b1c794b52f54f4da1d04.tar.gz
kernel-qcow2-linux-f33f748c964f6a6ee272b1c794b52f54f4da1d04.tar.xz
kernel-qcow2-linux-f33f748c964f6a6ee272b1c794b52f54f4da1d04.zip
powerpc/pseries: Read of-config partition via pstore
This patch set exploits the pstore subsystem to read details of of-config partition in NVRAM to a separate file in /dev/pstore. For instance, of-config partition details will be stored in a file named [of-nvram-5]. Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> Reviewed-by: Jim Keniston <jkenisto@us.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'fs/pstore/inode.c')
-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 ec24f9ceb5ed..73148aef9e31 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -327,6 +327,9 @@ int pstore_mkfile(enum pstore_type_id type, char *psname, u64 id, int count,
case PSTORE_TYPE_PPC_RTAS:
sprintf(name, "rtas-%s-%lld", psname, id);
break;
+ case PSTORE_TYPE_PPC_OF:
+ sprintf(name, "powerpc-ofw-%s-%lld", psname, id);
+ break;
case PSTORE_TYPE_UNKNOWN:
sprintf(name, "unknown-%s-%lld", psname, id);
break;