This software is a transparent ext2 file and directory compression tool that makes use of extended attributes. It compresses ext2 files and directories in a seamless manner.
The compression algorithm and cluster size can be specified on a per-file basis, and directories can also be marked for compression. In case a directory is marked for compression, every newly created file in the directory will automatically inherit the directory's compression flag, algorithm, and cluster size. E2compr is not a new filesystem but an ext2 patch built to support the EXT2_COMPR_FL flag, which can read or write existing ext2 filesystems without making a new partition.
Usage of E2compr is relatively easy. A file is compressed with the command `chattr c filename', and decompressed with the command `chattr-c filename'. Similarly, directories can be compressed with `chattr c' and decompressed with `chattr -c'. To check if a file should be compressed, use `lsattr' to see what compression algorithm and cluster size will be used. The e2ratio command can show how much disk space the compressed form takes compared to the uncompressed form. For directories, e2ratio finds the disk usage of the entire directory tree, whereas `lsattr-u' only shows the space taken by the directory file.
One thing to note about E2compr is that it does not compress administrative data for safety reasons. Overall, E2compr is an excellent patch that can coexist with compressed and uncompressed files on the ext2 partitions, making it an excellent choice for those looking to compress files in the ext2 filesystem.
Version 0.4.56: N/A