-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got "Invalid data: snappy::Uncompress failed" when decompressing raw file #24
Comments
Could post more information?
It works for me. $ ./snzip -t raw INSTALL
$ ./snzip -t raw -d INSTALL.raw My environment is: |
Hi, I did the test on Ubuntu 16.04, CPU Intel(R) Core(TM) i7-7700. |
Thanks. The compressed file is incorrectly compressed because of too big data. The maximum size of raw uncompressed data is 4G according to this information. There are two choices.
|
Got it, thanks. |
The latter is impossible. I can create a file containing concatenated raw compressed data. However I cannot decompress it because snappy checks whether all input data are consumed or not by |
I believe we have to make a new file format to store the file length information for splits of raw compressed data over 4G in case we can split them again when decompressing. |
What merit does the new file format have? I won't reinvent the wheel unless it has explicit merit. |
Well, you're right. Let's not reinvent the wheel. It's just that I want to make sure that we can get the boundary for every split when we want to decompress the file. If there is something already there, it would be even better. For now, you may just make it fail when file size is over 4G. |
I compressed a raw file with
snzip -t raw file
and when I runsnzip -t raw -d file.raw
I got the error message of uncompress failed.The text was updated successfully, but these errors were encountered: