OSDN Git Service

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)
commitdc80b1ea4cbff1d72ce3d5edaaf1b6602fd7c780
tree812a7b874b01a747f96f47f2dd80f6b79b85dc25
parent9ee85b8bd3cab1a151850b6648cab7ed2e0d8192
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