Skip to content

Commit

Permalink
pstore/zone: Introduce common layer to manage storage zones
Browse files Browse the repository at this point in the history
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: WeiXiong Liao <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/
Co-developed-by: Kees Cook <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
  • Loading branch information
WeiXiong Liao authored and kees committed May 30, 2020
1 parent acf12c5 commit d26c332
Show file tree
Hide file tree
Showing 4 changed files with 1,039 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fs/pstore/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 3 additions & 0 deletions fs/pstore/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading

0 comments on commit d26c332

Please sign in to comment.