Skip to contentSkip to conversation

fs/pstore: update the backend parameter in pstore module

PATCH In review Wang Long 2 participants 3 messages Mar 26, 2015 – May 4, 2015 Pstore filesystem

lore
Share & tools
lore

Wang Long

author
#0 lore raw

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)
---
 fs/pstore/platform.c | 6 ++++++
 1 file changed, 6 insertions(+)
fs/pstore/platform.c +6 -0
index c4c9a10..a52c218 100644
@@ -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
#1 lore raw
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)

Ack

Sincerely -- Mark Salyzyn

#2 lore raw
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

Ack

Sincerely -- Mark Salyzyn

Hi Tony Luck,

Could you please help to commit this patch?

Thank you.

Best Regards
Wang Long