xref: /aosp_15_r20/external/squashfs-tools/RELEASE-READMEs/README-4.0 (revision 79398b2563bcbbbab54656397863972d8fa68df1)
1*79398b25SAndroid Build Coastguard Worker	SQUASHFS 4.0 - A squashed read-only filesystem for Linux
2*79398b25SAndroid Build Coastguard Worker
3*79398b25SAndroid Build Coastguard Worker	Copyright 2002-2009 Phillip Lougher <[email protected]>
4*79398b25SAndroid Build Coastguard Worker
5*79398b25SAndroid Build Coastguard Worker	Released under the GPL licence (version 2 or later).
6*79398b25SAndroid Build Coastguard Worker
7*79398b25SAndroid Build Coastguard WorkerWelcome to Squashfs 4.0.  This is an initial tools only release to
8*79398b25SAndroid Build Coastguard Workersupport users of the 2.6.29 kernel, following the mainlining of Squashfs
9*79398b25SAndroid Build Coastguard Workerearlier this year.
10*79398b25SAndroid Build Coastguard Worker
11*79398b25SAndroid Build Coastguard WorkerLater releases will probably contain kernel patches supporting 4.0
12*79398b25SAndroid Build Coastguard Workerlayouts for earlier kernels.
13*79398b25SAndroid Build Coastguard Worker
14*79398b25SAndroid Build Coastguard WorkerNew Mksquashfs options
15*79398b25SAndroid Build Coastguard Worker----------------------
16*79398b25SAndroid Build Coastguard Worker
17*79398b25SAndroid Build Coastguard WorkerMksquashfs now supports pseudo files, these allow fake directories, character
18*79398b25SAndroid Build Coastguard Workerand block devices to be specified and added to the Squashfs filesystem being
19*79398b25SAndroid Build Coastguard Workerbuilt, rather than requiring them to be present in the source directories.
20*79398b25SAndroid Build Coastguard WorkerThis, for example, allows device nodes to be added to the filesystem without
21*79398b25SAndroid Build Coastguard Workerrequiring root access.
22*79398b25SAndroid Build Coastguard Worker
23*79398b25SAndroid Build Coastguard WorkerTwo options are supported, -p allows one pseudo file to be specified on the
24*79398b25SAndroid Build Coastguard Workercommand line, and -pf allows a pseudo file to be specified containing a
25*79398b25SAndroid Build Coastguard Workerlist of pseduo definitions, one per line.
26*79398b25SAndroid Build Coastguard Worker
27*79398b25SAndroid Build Coastguard WorkerPseudo device nodes are specified using 7 arguments
28*79398b25SAndroid Build Coastguard Worker
29*79398b25SAndroid Build Coastguard WorkerFilename type mode uid gid major minor
30*79398b25SAndroid Build Coastguard Worker
31*79398b25SAndroid Build Coastguard WorkerWhere type is either
32*79398b25SAndroid Build Coastguard Worker	b - for block devices, and
33*79398b25SAndroid Build Coastguard Worker	c - for character devices
34*79398b25SAndroid Build Coastguard Worker
35*79398b25SAndroid Build Coastguard Workermode is the octal mode specifier, similar to that expected by chmod.
36*79398b25SAndroid Build Coastguard Worker
37*79398b25SAndroid Build Coastguard WorkerUid and gid can be either specified as a decimal number, or by name.
38*79398b25SAndroid Build Coastguard Worker
39*79398b25SAndroid Build Coastguard WorkerFor example:
40*79398b25SAndroid Build Coastguard Worker
41*79398b25SAndroid Build Coastguard Worker/dev/chr_dev c 666 root root 100 1
42*79398b25SAndroid Build Coastguard Worker/dev/blk_dev b 444 0 0 200 200
43*79398b25SAndroid Build Coastguard Worker
44*79398b25SAndroid Build Coastguard WorkerDirectories are specified using 5 arguments
45*79398b25SAndroid Build Coastguard Worker
46*79398b25SAndroid Build Coastguard WorkerFilename type mode uid gid
47*79398b25SAndroid Build Coastguard Worker
48*79398b25SAndroid Build Coastguard WorkerWhere type is d.
49