aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>2013-06-05 14:51:44 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-20 03:04:52 -0400
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,
324 case PSTORE_TYPE_MCE: 324 case PSTORE_TYPE_MCE:
325 sprintf(name, "mce-%s-%lld", psname, id); 325 sprintf(name, "mce-%s-%lld", psname, id);
326 break; 326 break;
327 case PSTORE_TYPE_PPC_RTAS:
328 sprintf(name, "rtas-%s-%lld", psname, id);
329 break;
327 case PSTORE_TYPE_UNKNOWN: 330 case PSTORE_TYPE_UNKNOWN:
328 sprintf(name, "unknown-%s-%lld", psname, id); 331 sprintf(name, "unknown-%s-%lld", psname, id);
329 break; 332 break;