Skip to content

Commit

Permalink
fs/pstore: update the backend parameter in pstore module
Browse files Browse the repository at this point in the history
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>
Acked-by: Mark Salyzyn <salyzyn@android.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Wang Long authored and Tony Luck committed May 21, 2015
1 parent f0e2efc commit 42222c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fs/pstore/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 42222c2

Please sign in to comment.