moinakg / pcompress

A Parallelized Data Deduplication and Compression utility
http://moinakg.github.com/pcompress/
GNU Lesser General Public License v3.0
277 stars 34 forks source link

Streaming decompression #18

Open sgkasselau opened 10 years ago

sgkasselau commented 10 years ago

Hi,

I was wondering if streaming decompression is currently possible with pcompress?

Commands like:

pcompress -dp < inputfile.tar.pz > output.tar pcompress -dp < inputfile.tar.pz | tar xpf - pcompress -dp < inputfile.tar.pz | sha256sum -

currently cause pcompress to segmentation fault, as do attempts to use Bash's process substitution to decompress archives without the -p option e.g.

pcompress -d inputfile.tar.pz >(tar xpf -) pcompress -d inputfile.tar.pz >(sha256sum -)

This occurs with pcompress built on Ubuntu 10.04 and 13.04 from the latest commit 2702544d3f08132eeb481032df00728f3c429fe5, as well as a slightly earlier commit, f8d3ddfe397ebf29e4f608247204b686568d4d01

Archives decompressed as usual/typical with a non-existent file as the target output file e.g.

pcompress -d inputfile.tar.pz inputfile.tar

work as expected with these versions of pcompress, as does initial compression, streamed or otherwise.

Thank you in advance for your time and effort at looking at this issue.

moinakg commented 10 years ago

Thanks for the bug report. I will work on this shortly.