Blame 3rd-party/zisofs_tools/README

Packit 45fded
		    H. Peter Anvin <hpa@zytor.com>
Packit 45fded
			    June 13, 2004
Packit 45fded
Packit 45fded
Packit 45fded
User tools for zisofs:
Packit 45fded
Packit 45fded
The user tools for zisofs come in two parts: a utility "mkzftree" and
Packit 45fded
mkisofs, which is part of the cdrtools package.  cdrtools 1.11a20 or
Packit 45fded
later is required.
Packit 45fded
Packit 45fded
First create a directory tree containing compressed files:
Packit 45fded
Packit 45fded
	mkzftree input_dir compressed_dir
Packit 45fded
Packit 45fded
mkzftree will not overwrite an existing directory; you may want to "rm
Packit 45fded
-rf" the directory tree if you are doing this from a script:
Packit 45fded
Packit 45fded
Second, invoke the patched mkisofs with the -z option:
Packit 45fded
Packit 45fded
	mkisofs -z -R [other options] -o compressed.iso compressed_dir
Packit 45fded
Packit 45fded
IMPORTANT: you *must* enable RockRidge (-R or -r) since this is an
Packit 45fded
extensions to the RockRidge specification.  Without RockRidge, -z will
Packit 45fded
have no effect.
Packit 45fded
Packit 45fded
Note that if there are files you do not want compressed (for example,
Packit 45fded
files involved in booting, or README files you want to be readable
Packit 45fded
under all circumstances) you can simply put them in a separate tree
Packit 45fded
and not run mkzftree on that tree.
Packit 45fded
Packit 45fded
mkzftree will not compress files that end up larger when compressed;
Packit 45fded
if you want it to compress the files anyway, you can give the -f
Packit 45fded
option to mkzftree.
Packit 45fded
Packit 45fded
mkzftree also accepts a -u option (uncompress), which can be used to
Packit 45fded
convert a compressed tree back to normal form.  This can be used to
Packit 45fded
read a zisofs CD-ROM on a machine without zisofs kernel support.
Packit 45fded
Packit 45fded
This version of mkzftree supports a -p option (parallelize.)
Packit 45fded
Specifying -p and a parallelism (e.g. -p4) allows files (up to the
Packit 45fded
number specified) to compress in parallel.  Depending on your setup
Packit 45fded
and your data set size, this might speed things up if you are not
Packit 45fded
completely I/O bound.  Use -p0 to completely disable parallel
Packit 45fded
execution; this is the default.