Commit d26c3321 authored by WeiXiong Liao's avatar WeiXiong Liao Committed by Kees Cook
Browse files

pstore/zone: Introduce common layer to manage storage zones



Implement a common set of APIs needed to support pstore storage zones,
based on how ramoops is designed. This will be used by pstore/blk with
the intention of migrating pstore/ram in the future.

Signed-off-by: default avatarWeiXiong Liao <liaoweixiong@allwinnertech.com>
Link: https://lore.kernel.org/lkml/20200511233229.27745-2-keescook@chromium.org/


Co-developed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent acf12c5e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -153,3 +153,10 @@ config PSTORE_RAM
	  "ramoops.ko".

	  For more information, see Documentation/admin-guide/ramoops.rst.

config PSTORE_ZONE
	tristate
	depends on PSTORE
	help
	  The common layer for pstore/blk (and pstore/ram in the future)
	  to manage storage in zones.
+3 −0
Original line number Diff line number Diff line
@@ -12,3 +12,6 @@ pstore-$(CONFIG_PSTORE_PMSG) += pmsg.o

ramoops-objs += ram.o ram_core.o
obj-$(CONFIG_PSTORE_RAM)	+= ramoops.o

pstore_zone-objs += zone.o
obj-$(CONFIG_PSTORE_ZONE)	+= pstore_zone.o

fs/pstore/zone.c

0 → 100644
+985 −0

File added.

Preview size limit exceeded, changes collapsed.

+44 −0

File added.

Preview size limit exceeded, changes collapsed.