@@ -894,6 +894,58 @@ config CRAMFS
894894
895895 If unsure, say N.
896896
897+ config SQUASHFS
898+ tristate "SquashFS 4.0 - Squashed file system support"
899+ depends on BLOCK
900+ select ZLIB_INFLATE
901+ help
902+ Saying Y here includes support for SquashFS 4.0 (a Compressed
903+ Read-Only File System). Squashfs is a highly compressed read-only
904+ filesystem for Linux. It uses zlib compression to compress both
905+ files, inodes and directories. Inodes in the system are very small
906+ and all blocks are packed to minimise data overhead. Block sizes
907+ greater than 4K are supported up to a maximum of 1 Mbytes (default
908+ block size 128K). SquashFS 4.0 supports 64 bit filesystems and files
909+ (larger than 4GB), full uid/gid information, hard links and
910+ timestamps.
911+
912+ Squashfs is intended for general read-only filesystem use, for
913+ archival use (i.e. in cases where a .tar.gz file may be used), and in
914+ embedded systems where low overhead is needed. Further information
915+ and tools are available from http://squashfs.sourceforge.net.
916+
917+ If you want to compile this as a module ( = code which can be
918+ inserted in and removed from the running kernel whenever you want),
919+ say M here and read <file:Documentation/modules.txt>. The module
920+ will be called squashfs. Note that the root file system (the one
921+ containing the directory /) cannot be compiled as a module.
922+
923+ If unsure, say N.
924+
925+ config SQUASHFS_EMBEDDED
926+
927+ bool "Additional option for memory-constrained systems"
928+ depends on SQUASHFS
929+ default n
930+ help
931+ Saying Y here allows you to specify cache size.
932+
933+ If unsure, say N.
934+
935+ config SQUASHFS_FRAGMENT_CACHE_SIZE
936+ int "Number of fragments cached" if SQUASHFS_EMBEDDED
937+ depends on SQUASHFS
938+ default "3"
939+ help
940+ By default SquashFS caches the last 3 fragments read from
941+ the filesystem. Increasing this amount may mean SquashFS
942+ has to re-read fragments less often from disk, at the expense
943+ of extra system memory. Decreasing this amount will mean
944+ SquashFS uses less memory at the expense of extra reads from disk.
945+
946+ Note there must be at least one cached fragment. Anything
947+ much more than three will probably not make much difference.
948+
897949config VXFS_FS
898950 tristate "FreeVxFS file system support (VERITAS VxFS(TM) compatible)"
899951 depends on BLOCK
0 commit comments