Set the number of (de)compressor threads to
WTHRS. If this option is not specified,
lbzip2 either queries the system for the number of online processors (if both the
compilation environment and the execution environment support that), or it
exits with an error.
FILE operands after successful (de)compression. Open regular input files with more
than one links.
Write output to standard output, even when
FILE operands are present. Implies
-k and excludes -t. |
Test decompression; discard output instead of writing it to files or standard
-k and excludes -c. |
Force decompression over the mode of operation selected by the invocation name.
Force compression over the mode of operation selected by the invocation name.
|-1 .. -9||
Set the compression block size to 100K .. 900K, in 100K increments.
Alias for -1. |
Alias for -9. This is the default. |
Open non-regular input files. Open input files with more than one links,
breaking links when
-k isnt specified in addition. Try to remove each output file before opening it.
Print a short message to standard error whenever a (de)compression operation
Print condition variable statistics to standard error for each completed
|-s, --small, -q, --quiet, --repetitive-fast,|
Accepted for compatibility with
bzip2, otherwise ignored. |
|-h, --help, -L, --license, -V, --version|
Display license and version information, plus help on command-line usage.
LBZIP2, BZIP2, BZIP Before parsing the command line, lbzip2 inserts the contents of these variables, in the order specified, between the invocation name and the rest of the command line. Tokens are separated by spaces and tabs, which cannot be escaped.
LBZIP2_TRACE_ALLOC If this variable is set to a non-empty value, lbzip2 prints a memory allocation trace to standard error. The trace can be checked with the malloc_trace.pl Perl script (part of the source distribution).
FILE Specify files to compress or decompress. If no FILE is given, lbzip2 works as a filter. FILEs with .bz2, .tbz, .tbz2 and .tz2 name suffixes will be skipped when compressing. When decompressing, .bz2 suffixes will be removed in output filenames; .tbz, .tbz2 and .tz2 suffixes will be replaced by .tar; other filenames will be suffixed with .out. If an INT or TERM signal is delivered to lbzip2, then it removes the regular output file currently open before exiting.
0 if lbzip2 finishes successfully. This presumes that whenever it tries, lbzip2 never fails to write to standard error.
1 if lbzip2 encounters a fatal error.
4 if lbzip2 issues warnings without encountering a fatal error. This presumes that whenever it tries, lbzip2 never fails to write to standard error.
SIGPIPE, SIGXFSZ if lbzip2 intends to exit with status 1 due to any fatal error, but any such signal with inherited SIG_DFL action was generated for lbzip2 previously, then lbzip2 terminates by way of one of said signals, after cleaning up any interrupted output file.
SIGABRT (via assert()) if a runtime assertion fails (ie. lbzip2 detects a bug in itself). Hopefully whoever compiled your binary wasnt bold enough to #define NDEBUG.
SIGINT, SIGTERM lbzip2 catches these signals so that it can remove an interrupted output file. In such cases, lbzip2 exits by re-raising (one of) the received signal(s).
The compressed output is a sequence of single-block bzip2 streams, instead of being a single multi-block bzip2 stream. Thus no output-global combined CRC can be written, and the resulting .bz2 file will return multiple BZ_STREAM_ENDs when decompressed with libbz2.
The multiple-workers decompressor (lbzip2 -d -n WTHRS, where WTHRS is greater than 1, either by default or by manual selection) doesnt check stream-level (combined) CRCs, only block-level CRCs. It can also fail to decompress some rare valid .bz2 files. (See the Bugs section of the README in the source distribution for more on this.) Since the author cannot rule out that such a failure may get reported as corrupt input instead of the dedicated error message, lbzip2 doesnt reserve a separate exit status for corrupt input -- it could be misleading.
The bit-string search algorithm used in the multiple-workers decompressor is naive and slow.
Separate input files dont share worker threads; at most one input file is worked on at any moment.
Written by Laszlo Ersek <email@example.com>, http://lacos.hu/.
Copyright (C) 2008, 2009, 2010 Laszlo Ersek.
This is free software. You may redistribute copies of it under the terms of the GNU General Public License, version 2:
or -- at your opinion -- any later version, eg.
Adam Maulis at ELTE IIG; Julian Seward; Paul Sladen; Michael Thomas from Caltech HEP; Bryan Stillwell; Zsolt Bartos-Elekes; Imre Csatlos; Gabor Kovesdan; Paul Wise; Paolo Bonzini; Department of Electrical and Information Engineering at the University of Oulu.
|-->||LBZIP2 (1)||lbzip2.1,v 1.62 2010/03/03 01:06:58 lacos Exp|