support for gzip/bzip2 built-in

Bug #176740 reported by Michael Biebl
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
partimage-ng
New
Undecided
Unassigned

Bug Description

Hi,

this is more a feature request than bug report.
Although I very much like the approach to keep partimage-ng simple and tied to one task only (very unixy) I think it would make sense to support gzipped/bzipped image archives natively (by utilizing zlib1g/libbz2-1.0).
Operations like imageinfo currently work only on non-packaged archives. It would be nice if such operations would work without having to unpack the archives.

Cheers,
Michael

P.S.: I like your choice of CMake!

Revision history for this message
Dmitry Ivanov (vonami) wrote :

Hi, Michael

You are right, I'm trying to keep partimage-ng as simple as possible. After the basic operations (backup/restore) are tested well and if there is demand for this I might add support for compressed image files. That is a trivial task I suppose. For now it's a no-no because even the image file format is not stabilized yet.

PS. I simply had no choice because CMake is so easy to work with!

Revision history for this message
Maxim Filatov (mczim) wrote :

Hi there. I add source code to compress and decompress file. Dmitry please see this.

Revision history for this message
Maxim Filatov (mczim) wrote :

UPD: compress and decompress with gzip.

Revision history for this message
Maxim Filatov (mczim) wrote :

Hi again, i added source code for compress and decompress with bzip2. Dmitry, please check it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.