fs/pstore: update the backend parameter in pstore module
PATCH 1/1 fs/pstore: update the backend parameter in pstore module
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 <[email protected]>
--- fs/pstore/platform.c | 6 ++++++ 1 file changed, 6 insertions(+)
fs/pstore/platform.c +6 -0
@@ -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 ;
Signature · 1 line
1.8.3.4
Quoted 5 lines · Wang Long
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:
Quoted 7 lines
# cat /sys/module/pstore/parameters/backend ramoops and without this patch: # cat /sys/module/pstore/parameters/backend (null)Signed-off-by Wang Long <[email protected]>
Ack
Sincerely -- Mark Salyzyn
Quoted 12 lines · Mark Salyzyn
Quoted 11 lines · Wang Long
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)
Quoted 6 lines
Quoted 1 line
Signed-off-by Wang Long <[email protected]>Ack
Sincerely -- Mark Salyzyn
Hi Tony Luck,
Could you please help to commit this patch?
Thank you.
Best Regards
Wang Long