linux_old1/fs/pstore
Lenny Szubowicz 8e48b1a8ed 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>
2013-06-28 15:21:52 -07:00
..
Kconfig pstore/ftrace: Convert to its own enable/disable debugfs knob 2012-09-06 22:16:58 -07:00
Makefile pstore: Add persistent function tracing 2012-07-17 10:05:52 -07:00
ftrace.c pstore/ftrace: Adjust for ftrace_ops->func prototype change 2012-12-12 19:50:04 -08:00
inode.c pstore: Fail to unlink if a driver has not defined pstore_erase 2013-06-25 10:04:38 -07:00
internal.h efi_pstore: Add a sequence counter to a variable name 2012-11-26 16:07:44 -08:00
platform.c pstore: Return unique error if backend registration excluded by kernel param 2013-06-28 15:21:52 -07:00
ram.c pstore/ram: remove the power of buffer size limitation 2013-06-14 15:54:41 -07:00
ram_core.c pstore/ram: avoid atomic accesses for ioremapped regions 2013-06-14 15:54:21 -07:00