README
1 This directory contains the sources of on the fly decompression
2 support in the lofi(7D) kernel module in OpenSolaris.
3
4 To build this you must have the current OpenSolaris source tree
5 and the SUN Studio compiler installed on your system. These can
6 be downloaded from www.opensolaris.org . In addition you must
7 edit the Makefile and set the "OSOL_WS" variable to point to the
8 root of your OpenSolaris source tree. Subsequently typing a make
9 will generate 3 binaries:
10
11 lofi: This is the modified lofi module and can be copied into
12 /kernel/drv
13
14 lcompress: This is an utility that compresses a file in a way
15 such that it can be decompressed on the fly via the modified
16 lofi module. It takes 3 arguments:
17
18 filename - File to compress
19 segment size - The file is split into segments of this size
20 and each segment is compressed. This size
21 must be a power of two.
22 threshold - The minimum amount by which compression must
23 reduce a segment's size. If after compression
24 the difference between uncompressed size and
25 compressed size is less than this threshold
26 then the segment is stored uncompressed.
27
28 This utility generates a new file named <filename>.zlib
29
30 ldecompress: A utility to decompress a file compressed using
31 lcompress. This is mainly required for testing/verification.
32