* [PATCH] fs/pstore: update the backend parameter in pstore module
@ 2015-03-26 10:08 Wang Long
2015-03-26 15:48 ` Mark Salyzyn
0 siblings, 1 reply; 3+ messages in thread
From: Wang Long @ 2015-03-26 10:08 UTC (permalink / raw)
To: keescook, ccross, anton, tony.luck
Cc: linux-kernel, long.wanglong, peifeiyue, marco.stornelli,
anton.vorontsov, salyzyn, sergiu, morgan.wang
This patch update the module parameter backend, so it is visible
through /sys/module/pstore/parameters/backend.
For example:
if pstore backend is ramoops, with this patch:
# cat /sys/module/pstore/parameters/backend
ramoops
and without this patch:
# cat /sys/module/pstore/parameters/backend
(null)
Signed-off-by: Wang Long <long.wanglong@huawei.com>
---
fs/pstore/platform.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index c4c9a10..a52c218 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
@@ -456,6 +456,12 @@ int pstore_register(struct pstore_info *psi)
add_timer(&pstore_timer);
}
+ /*
+ * Update the module parameter backend, so it is visible
+ * through /sys/module/pstore/parameters/backend
+ */
+ backend = psi->name;
+
pr_info("Registered %s as persistent store backend\n", psi->name);
return 0;
--
1.8.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fs/pstore: update the backend parameter in pstore module
2015-03-26 10:08 [PATCH] fs/pstore: update the backend parameter in pstore module Wang Long
@ 2015-03-26 15:48 ` Mark Salyzyn
2015-05-04 9:27 ` long.wanglong
0 siblings, 1 reply; 3+ messages in thread
From: Mark Salyzyn @ 2015-03-26 15:48 UTC (permalink / raw)
To: Wang Long, keescook, ccross, anton, tony.luck
Cc: linux-kernel, peifeiyue, marco.stornelli, anton.vorontsov,
sergiu, morgan.wang
On 03/26/2015 03:08 AM, Wang Long wrote:
> This patch update the module parameter backend, so it is visible
> through /sys/module/pstore/parameters/backend.
>
> For example:
> if pstore backend is ramoops, with this patch:
> # cat /sys/module/pstore/parameters/backend
> ramoops
> and without this patch:
> # cat /sys/module/pstore/parameters/backend
> (null)
>
> Signed-off-by: Wang Long <long.wanglong@huawei.com>
Ack
Sincerely -- Mark Salyzyn
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fs/pstore: update the backend parameter in pstore module
2015-03-26 15:48 ` Mark Salyzyn
@ 2015-05-04 9:27 ` long.wanglong
0 siblings, 0 replies; 3+ messages in thread
From: long.wanglong @ 2015-05-04 9:27 UTC (permalink / raw)
To: Tony Luck
Cc: keescook, ccross, anton, tony.luck, linux-kernel, peifeiyue,
marco.stornelli, anton.vorontsov, sergiu, morgan.wang
On 2015/3/26 23:48, Mark Salyzyn wrote:
> On 03/26/2015 03:08 AM, Wang Long wrote:
>> This patch update the module parameter backend, so it is visible
>> through /sys/module/pstore/parameters/backend.
>>
>> For example:
>> if pstore backend is ramoops, with this patch:
>> # cat /sys/module/pstore/parameters/backend
>> ramoops
>> and without this patch:
>> # cat /sys/module/pstore/parameters/backend
>> (null)
>>
>> Signed-off-by: Wang Long <long.wanglong@huawei.com>
> Ack
>
> Sincerely -- Mark Salyzyn
>
>
Hi Tony Luck,
Could you please help to commit this patch?
Thank you.
Best Regards
Wang Long
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-04 10:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-26 10:08 [PATCH] fs/pstore: update the backend parameter in pstore module Wang Long
2015-03-26 15:48 ` Mark Salyzyn
2015-05-04 9:27 ` long.wanglong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).