Compress files for a flash filesystem
This utility is now deprecated. Use inflator and deflate instead. |
flashcmp [options] [srcfile ...]
With other compression utilities, it's logical to append a suffix to the file by default; but in the case of the flash filesystem we normally don't want a suffix appended because the filesystem decompresses automatically (the user shouldn't even know that the file is compressed). The flashcmp utility inserts a signature in the file that lets mkefs distinguish a compressed file from a regular file.
The compression engine operates on a buffer of the given size and the flash filesystem must allocate a buffer of equal size to decompress. Large buffers can improve compression ratios, but in a RAM-constrained system, a large buffer size may not be desirable.
The default compression type is lzo.
QNX Neutrino flash filesystem version 3 no longer provides built-in decompression. The flash filesystem's decompression functionality has moved into the inflator resource manager. You should now use the deflate utility to compress files. The flashcmp utility is now used for backward compatibility. |
The flashcmp utility compresses files for a flash filesystem. It's intended to be used in conjunction with the filter attribute for mkefs. It can also be used to precompress files intended for a flash filesystem. For example:
cat file | flashcmp > file.lzo
Or:
flashcmp file
The LZO and UCL algorithms used in this utility are copyright 2000, Markus F.X.J. Oberhumer.