aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>2013-06-05 14:52:20 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-20 03:05:02 -0400
commita5e4797b0f46819a74a7233825137ed5d2f51b51 (patch)
tree2b7df1fd50f6b046a259eb21d046c70dbb70a1d2 /fs/pstore
parentf33f748c964f6a6ee272b1c794b52f54f4da1d04 (diff)
powerpc/pseries: Read common partition via pstore
This patch exploits pstore subsystem to read details of common partition in NVRAM to a separate file in /dev/pstore. For instance, common partition details will be stored in a file named [common-nvram-6]. 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 73148aef9e31..08c3d76b24ca 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -330,6 +330,9 @@ int pstore_mkfile(enum pstore_type_id type, char *psname, u64 id, int count,
330 case PSTORE_TYPE_PPC_OF: 330 case PSTORE_TYPE_PPC_OF:
331 sprintf(name, "powerpc-ofw-%s-%lld", psname, id); 331 sprintf(name, "powerpc-ofw-%s-%lld", psname, id);
332 break; 332 break;
333 case PSTORE_TYPE_PPC_COMMON:
334 sprintf(name, "powerpc-common-%s-%lld", psname, id);
335 break;
333 case PSTORE_TYPE_UNKNOWN: 336 case PSTORE_TYPE_UNKNOWN:
334 sprintf(name, "unknown-%s-%lld", psname, id); 337 sprintf(name, "unknown-%s-%lld", psname, id);
335 break; 338 break;