squashfs: add mtd backend
Subsystems (2)
PATCH 1/1 squashfs: add mtd backend
--- fs/squashfs/Kconfig | 2 +- fs/squashfs/Makefile | 1 + fs/squashfs/backend.c | 3 + fs/squashfs/mtd.c | 167 ++++++++++++++++++++++++++++++++++++++++++++++++ fs/squashfs/squashfs.h | 3 + 5 files changed, 175 insertions(+), 1 deletions(-) create mode 100644 fs/squashfs/mtd.c
fs/squashfs/Kconfig +1 -1
@@ -1,6 +1,6 @@ config SQUASHFS tristate "SquashFS 4.0 - Squashed file system support" - depends on BLOCK + depends on BLOCK || MTD select ZLIB_INFLATE help Saying Y here includes support for SquashFS 4.0 (a Compressed
fs/squashfs/Makefile +1 -0
@@ -7,3 +7,4 @@ squashfs-y += block.o cache.o dir.o export.o file.o fragment.o id.o inode.o squashfs-y += namei.o super.o symlink.o zlib_wrapper.o decompressor.o backend.o squashfs-$(CONFIG_SQUASHFS_LZMA) += lzma_wrapper.o squashfs-$(CONFIG_BLOCK) += bdev.o +squashfs-$(CONFIG_MTD) += mtd.o
fs/squashfs/backend.c +3 -0
@@ -8,6 +8,9 @@ const struct squashfs_backend *backends[] = {#ifdef CONFIG_BLOCK &squashfs_bdev_ops,#endif +#ifdef CONFIG_MTD + &squashfs_mtd_ops, +#endifNULL };
fs/squashfs/mtd.c new file +167 -0
167 lines not on this page · raw message
fs/squashfs/squashfs.h +3 -0
@@ -104,3 +104,6 @@ extern const struct squashfs_decompressor squashfs_lzma_comp_ops;/* bdev.c */ extern const struct squashfs_backend squashfs_bdev_ops; + +/* mtd.c */ +extern const struct squashfs_backend squashfs_mtd_ops;
Signature · 1 line
1.5.6.5