Con Kolivas
|
36e09f206e
|
Begin massive read changes to support using temporary file for STDIN.
|
2011-03-14 20:22:45 +11:00 |
|
Con Kolivas
|
91b8382214
|
Read magic specially when decompressing from STDIN.
|
2011-03-14 18:16:14 +11:00 |
|
Con Kolivas
|
d56c826725
|
Add fd_in field to struct rzip_control.
|
2011-03-14 14:58:41 +11:00 |
|
Con Kolivas
|
00be150cfb
|
Add flag tests for TMP_INBUF.
|
2011-03-14 14:56:59 +11:00 |
|
Con Kolivas
|
684959efed
|
Add fields for temporary input buffer and clamp memory accordingly in preparation.
|
2011-03-14 14:47:26 +11:00 |
|
Con Kolivas
|
5f7a03932b
|
Calculate the total expected size progressively and show it when it's not known.
|
2011-03-14 13:32:36 +11:00 |
|
Con Kolivas
|
dc360b52dc
|
Update message when dumping buffer and make it maxverbose only.
|
2011-03-14 12:54:40 +11:00 |
|
Con Kolivas
|
9e772d3140
|
Make ALL decompression use temporary in-ram buffer whenever possible.
|
2011-03-14 12:48:40 +11:00 |
|
Con Kolivas
|
27d7c2a031
|
Tidy.
|
2011-03-14 12:23:12 +11:00 |
|
Con Kolivas
|
0fe3213a47
|
Write to physical files if we cannot fit the decompression in ram.
|
2011-03-14 12:15:54 +11:00 |
|
Con Kolivas
|
aeefba2190
|
Allocate slightly more so we can cope when the buffer overflows and fall back to a real temporary file.
|
2011-03-14 11:37:56 +11:00 |
|
Con Kolivas
|
37009e2ac5
|
Make sure to read on an fd if that's what we're supposed to be doing.
|
2011-03-14 11:25:04 +11:00 |
|
Con Kolivas
|
b644240152
|
write_1g always uses control->fd_out so don't pass fd to it.
|
2011-03-14 11:15:35 +11:00 |
|
Con Kolivas
|
7eabb5e7de
|
Check seek hasn't made the pseudo file longer.
|
2011-03-14 11:12:12 +11:00 |
|
Con Kolivas
|
19ef7298c8
|
Cast fstat values to i64 to prevent 32 bit overflows.
|
2011-03-14 10:21:10 +11:00 |
|
Con Kolivas
|
e138fa77ff
|
Use temporary files for now with TEST_ONLY mode.
|
2011-03-14 10:19:53 +11:00 |
|
Con Kolivas
|
4a6fa7602f
|
Begin decompressing to stdout via temporary buffer by creating a read/write wrapper.
|
2011-03-14 10:07:51 +11:00 |
|
Con Kolivas
|
d9e9f0d71d
|
No need to keep usable_ram as a rzip_control variable.
|
2011-03-13 22:28:28 +11:00 |
|
Con Kolivas
|
66fe056f30
|
Don't use open coded flags.
|
2011-03-13 22:22:46 +11:00 |
|
Con Kolivas
|
938ef76182
|
Clean indent.
|
2011-03-13 22:19:28 +11:00 |
|
Con Kolivas
|
17c35cb331
|
Use the usable_ram variable just to determine the maximum size allocatable.
|
2011-03-13 22:16:46 +11:00 |
|
Con Kolivas
|
6853c2359e
|
Merge branch 'master' into newconf
|
2011-03-13 22:08:03 +11:00 |
|
Con Kolivas
|
f2ddd9022c
|
Ignore the eof flag if the file size is known.
|
2011-03-13 21:31:03 +11:00 |
|
Con Kolivas
|
b17540d32e
|
Fix decompressing single chunk stdout chunked archives.
|
2011-03-13 18:14:50 +11:00 |
|
Con Kolivas
|
e0a0e6b277
|
Whitespace fix.
|
2011-03-13 18:13:46 +11:00 |
|
Con Kolivas
|
fe0416be9d
|
Fix whitespace indentation.
|
2011-03-13 18:12:05 +11:00 |
|
Con Kolivas
|
8756fe91e2
|
Enable decompression when file has been chunked stdout and display progress only when expected size is known.
|
2011-03-13 17:52:23 +11:00 |
|
Con Kolivas
|
a023420cdc
|
Make get_filefinfo read over whole file to get uncompressed size for when it's not known due to being a stdout chunked file.
Don't display microseconds in information as it will be removed.
|
2011-03-13 17:31:30 +11:00 |
|
Con Kolivas
|
6d0ac95170
|
Remove extra locking that does nothing.
|
2011-03-13 12:12:37 +11:00 |
|
Con Kolivas
|
6ac74aa9f0
|
Create a flag to know when the temporary output buffer is in use, in preparation for when we use it on decompression.
|
2011-03-13 08:34:06 +11:00 |
|
Con Kolivas
|
2f87f62696
|
Make the tmp out buf slightly larger to account for incompressible data, and check for buffer overflows.
|
2011-03-13 08:16:46 +11:00 |
|
Con Kolivas
|
11ea12d3ce
|
Forgot to test for TEST_ONLY.
|
2011-03-12 23:07:52 +11:00 |
|
Con Kolivas
|
d2ae072a3c
|
Round to page for optimum efficiency.
|
2011-03-12 22:58:39 +11:00 |
|
Con Kolivas
|
823a51cc74
|
Move const one_g to correct place.
|
2011-03-12 22:50:40 +11:00 |
|
Con Kolivas
|
d067a6ea9e
|
Implement the real workings of writing to a temporary buffer before flushing to stdout.
|
2011-03-12 22:46:57 +11:00 |
|
Con Kolivas
|
1397c0f832
|
Create custom "loop count" system to determine how many times to hash a password when encrypting based on the datestamp.
This data will be stored as a 2 byte entry in the header in the future (b1 and b2).
|
2011-03-12 20:31:56 +11:00 |
|
Con Kolivas
|
7fbec0a783
|
Prepare to write compressed output by flushing stdout after each chunk is compressed.
|
2011-03-12 19:56:08 +11:00 |
|
Con Kolivas
|
c75a50f723
|
Being modifying write_1g function to be able to write to a temporary buffer instead of straight to fd_out.
Split out make_magic to be able to write magic wherever we want later.
|
2011-03-12 14:13:28 +11:00 |
|
Con Kolivas
|
9444441d51
|
Modify maximum ram usable when stdout is being used in preparation for temporary in-ram file during stdout and fix summary shown and 32 bit limits.
|
2011-03-12 12:19:02 +11:00 |
|
Con Kolivas
|
885c6b327f
|
Add storage time display if it exists in maxverbose info.
|
2011-03-12 11:55:15 +11:00 |
|
Con Kolivas
|
6642955375
|
Update magic header info. It turns out I can't add.
Fix fileinfo to be able to read version 0.6x files.
|
2011-03-12 11:40:51 +11:00 |
|
Con Kolivas
|
fe68b9a3f7
|
Institute writing and reading of 0.6 file format for compress/decompress.
|
2011-03-12 11:17:11 +11:00 |
|
Con Kolivas
|
d87df4f44e
|
Store the file size as zero when the magic header will be written before the size is known.
|
2011-03-11 23:45:22 +11:00 |
|
Con Kolivas
|
a10d423596
|
Write/read new magic header and fix version number in configure.ac
|
2011-03-11 23:29:56 +11:00 |
|
Con Kolivas
|
39e07fc4e5
|
Create tentative design for new file format.
|
2011-03-11 22:34:26 +11:00 |
|
Con Kolivas
|
a2d2245b2d
|
Correct magic data header info and be more verbose about file format.
|
2011-03-11 22:17:26 +11:00 |
|
Con Kolivas
|
b7996dda45
|
Push version to 0.600 signifying size of pending code changes and file format change.
|
2011-03-11 22:02:48 +11:00 |
|
Con Kolivas
|
9bd7468465
|
Fix fileinfo output for versions < 0.5.
|
2011-03-11 21:46:23 +11:00 |
|
Con Kolivas
|
64ca85120c
|
Add chunk_byte reading to information output.
|
2011-03-11 21:26:42 +11:00 |
|
Con Kolivas
|
3a00735c24
|
Fix locking.
Patch by <mike@zentific.com>
|
2011-03-11 12:29:27 +11:00 |
|