]> git.karo-electronics.de Git - linux-beck.git/commit
pstore: Return unique error if backend registration excluded by kernel param
authorLenny Szubowicz <lszubowi@redhat.com>
Fri, 28 Jun 2013 21:11:33 +0000 (17:11 -0400)
committerTony Luck <tony.luck@intel.com>
Fri, 28 Jun 2013 22:21:52 +0000 (15:21 -0700)
commit8e48b1a8ed58595c40f2748c0f2da55b04da2dd6
tree4f1e7d8c3397cbdb6dd16ffe04c3f49506df5f00
parentbf2883339a33b7544b92ea465b90c3de55082032
pstore: Return unique error if backend registration excluded by kernel param

This is patch 1/3 of a patch set that avoids what misleadingly appears
to be a error during boot:

ERST: Could not register with persistent store

This message is displayed if the system has a valid ACPI ERST table and the
pstore.backend kernel parameter has been used to disable use of ERST by
pstore. But this same message is used for errors that preclude registration.

As part of fixing this, return a unique error status from pstore_register
if the pstore.backend kernel parameter selects a specific facility other
than the requesting facility and check for this condition before any others.
This allows the caller to distinquish this benign case from the other failure
cases.

Also, print an informational console message about which facility
successfully registered as the pstore backend. Since there are various
kernel parameters, config build options, and boot-time errors that can
influence which facility registers with pstore, it's useful to have a
positive indication.

Signed-off-by: Lenny Szubowicz <lszubowi@redhat.com>
Reported-by: Naotaka Hamaguchi <n.hamaguchi@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/platform.c