]> git.baikalelectronics.ru Git - kernel.git/commit
pstore/ram: Report backend assignments with finer granularity
authorKees Cook <keescook@chromium.org>
Thu, 1 Nov 2018 21:14:47 +0000 (14:14 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 4 Dec 2018 00:52:35 +0000 (16:52 -0800)
commit00ef42cb4429fd46595f5b65fc885d52e256f54e
tree812a7b874b01a747f96f47f2dd80f6b79b85dc25
parent97057bfecab2176a25c5a636bd8e262929479054
pstore/ram: Report backend assignments with finer granularity

In order to more easily perform automated regression testing, this
adds pr_debug() calls to report each prz allocation which can then be
verified against persistent storage. Specifically, seeing the dividing
line between header, data, any ECC bytes. (And the general assignment
output is updated to remove the bogus ECC blocksize which isn't actually
recorded outside the prz instance.)

Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ram.c
fs/pstore/ram_core.c