ShaoLin Microsystems  
Leading Enterprise Linux Utility Computing
Corporate Products Services Support Partners
Downloads  Store  Contact Us   

3.4. Cogofs Utilities

The Cogofs utilities package contains both online and offline Cogofs tools.

3.4.1. cogoioctl

Provides online control, compression and decompression for Cogofs. It is designed for use with a mounted Cogofs. Here is a list of option available with cogoioctl

-c

Compress regular file(s) to cogo file(s).

-d

Decompress cogo file(s) to regular file(s).

-s [n]

Compress file(s) with size larger than n bytes, requires -c .

-p [p%]

Do not compress file if compression ratio is smaller than [p%], default value is 20%, require -c .

-q

Query compressed file, read the compressed file size, require a file argument.

-r

Reload file system configuration, re-read /etc/cogo.conf, requires a Cogofs mount point and only root can do this.

-t

Change the per block compression threshold value, where 1 < t < 255, must use with -c or -d .

-R

ravel the directory recursively, require a directory argument, can be used with -c or -d .

-v

Verbose output.

-V

Display version number.

Please check the manual pages man cogoioctl(1) for more details.

3.4.2. cogo

Provides offline file conversion, useful for file extraction without the need of mounting Cogofs.

-c

Write converted data to STDOUT .

-d

Decompress FILES, the ".cogo" extension will be removed.

-k

Keep the original files after conversion.

-p

Preserve original file attributes after conversion.

Please check the manual pages man cogo(1).

3.4.3. cogocat

Offline file extraction utility, works like cat and cat, it can read a .cogo file and decompress it to standard output. Example,

 $ cogocat /tmp/myfile.cogo > /tmp/myfile
$