summaryrefslogtreecommitdiff
path: root/fs/pstore
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>2013-06-06 00:21:44 +0530
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-20 17:04:52 +1000
commit69020eea973d95766e905ee0ce7773e0027377a3 (patch)
treea95233fbe6e307ceb991722a72188428210f9067 /fs/pstore
parentd7563c94f728d8c9228cfddbb044c843b2e243e8 (diff)
powerpc/pseries: Read rtas partition via pstore
This patch set exploits the pstore subsystem to read details of rtas partition in NVRAM to a separate file in /dev/pstore. For instance, rtas details will be stored in a file named [rtas-nvram-4]. 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')
-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 e4bcb2cf055a..ec24f9ceb5ed 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -324,6 +324,9 @@ int pstore_mkfile(enum pstore_type_id type, char *psname, u64 id, int count,
case PSTORE_TYPE_MCE:
sprintf(name, "mce-%s-%lld", psname, id);
break;
+ case PSTORE_TYPE_PPC_RTAS:
+ sprintf(name, "rtas-%s-%lld", psname, id);
+ break;
case PSTORE_TYPE_UNKNOWN:
sprintf(name, "unknown-%s-%lld", psname, id);
break;