Commit graph

982 commits

Author SHA1 Message Date
Con Kolivas e6669cf156 Null terminate long options to find unhandled options 2015-03-10 14:02:51 +11:00
Con Kolivas c951b17a20 Trivial date 2015-03-10 14:00:24 +11:00
Con Kolivas 9ac3990812 Add long option support 2015-03-10 13:52:22 +11:00
Con Kolivas e590d781f3 Brace failure lead to broken dump to stdout 2015-03-10 13:26:14 +11:00
Con Kolivas 79cebb663b fflush messages on print_err 2015-03-10 13:01:16 +11:00
Con Kolivas 5a6271c85d Fix inverse logic 2015-03-10 12:27:17 +11:00
Con Kolivas 99ac472095 Honour the proper unix environment variable for temporary directory and then try variations 2015-03-10 12:10:50 +11:00
Con Kolivas 8551a43c73 Attempt to decompress file in ram only if we are unable to create temporary files when decompressing to stdout 2015-03-10 12:05:55 +11:00
Con Kolivas c3bc42e2c8 Avoid checking return values repeatedly on compress that only lead to failures anyway 2015-03-10 09:46:35 +11:00
Con Kolivas aa753fee53 Microoptimisation 2015-03-09 21:24:50 +11:00
Con Kolivas edc7f5a7ce Don't check for failure condition that can no longer occur 2015-03-09 21:10:48 +11:00
Con Kolivas 420a483a30 Don't check twice for failure conditions that are fatal in hot paths 2015-03-09 21:03:10 +11:00
Con Kolivas 6e31fc621e Cache the chunk bytes value to avoid setting it on each read_header call 2015-03-09 11:46:24 +11:00
ckolivas 707ca69d31 fake_mremap is only used when defined to mremap 2015-03-08 23:30:04 +11:00
ckolivas 1a323770c7 Remove unused cksem functions 2015-03-08 10:11:42 +11:00
ckolivas f690750340 Fix remaining use of mutexes lock/unlocking in different threads with cksems, corecting cksem usage on osx 2015-03-08 10:10:38 +11:00
ckolivas dd9dc7555d Update copyright dates 2015-03-08 08:53:47 +11:00
ckolivas f378595dce Make match_len a function completely removing all indirect calls to get_sb, significantly speeding up the single_get_sb case 2015-03-08 01:21:53 +11:00
ckolivas cb7b0dd339 Make full_tag a pointer allowing us to avoid a function call for get_sb 2015-03-08 00:59:05 +11:00
ckolivas cf35575c72 Call sliding_get_sb directly in sliding_next_tag 2015-03-08 00:52:27 +11:00
ckolivas 70db73b955 Make next_tag a pointer to allow ordinary mapping to avoid an extra function call 2015-03-08 00:50:10 +11:00
Con Kolivas f95bc63976 Merge pull request #36 from pete4abw/master
fix order of lrzip.conf search
2015-03-07 00:59:51 +11:00
Peter Hyman 6a5eda6353 fix order of lrzip.conf search 2015-03-06 05:21:32 -08:00
Con Kolivas 9380d40a57 Bump version to 0.620 2015-03-03 14:20:12 +11:00
Con Kolivas 33964ba6a4 Update Changelog 2015-03-03 14:19:12 +11:00
Con Kolivas c14f9ccab3 Increase maxram when we abandon use of temporary input/output buffers 2015-03-03 14:15:09 +11:00
Con Kolivas b48c3b2ee4 Don't delete the tmpinfile when decompressing from stdin before allowing seek to end to succeed in checking md5 2015-03-03 13:38:51 +11:00
Con Kolivas 3f746d5d60 Use temporary file from read_seekto when STDIN will not fit in the ram input buffer 2015-03-03 13:09:00 +11:00
Con Kolivas a334444977 Remove unused read_i64 function 2015-03-03 09:35:35 +11:00
Con Kolivas 133d52cc68 Add message about issue tracker in BUGS 2015-02-09 09:23:37 +11:00
Con Kolivas 19396eb5af Merge pull request #30 from elmirjagudin/mem_limit_flag
command line option to limit memory usage
2015-02-09 09:21:09 +11:00
Con Kolivas 05ae5eab75 Use a common exit path iin lrzip_compress/decompress and fix lr leak on successful return 2015-02-09 09:19:03 +11:00
Con Kolivas e21bd815a7 Merge pull request #35 from cspiegel/master
A couple of small fixes
2015-02-09 09:04:56 +11:00
Con Kolivas 8814c7638d Merge branch 'pete4abw-master' 2015-02-09 09:03:48 +11:00
Con Kolivas 9b7405e9cd Roll back inappropriately updated version with other patches 2015-02-09 09:03:37 +11:00
Chris Spiegel e6338e9f9e Fix parenthesis placement inside of unlikely(). 2015-01-31 23:05:27 -08:00
Chris Spiegel fb3762ee97 Clear sa_mask and sa_handler before calling sigaction(). 2015-01-31 22:51:11 -08:00
Peter Hyman 70c87cbc62 Fix for lrzip -i. Decompressed size wrong 2014-12-31 13:57:37 -05:00
Elmir Jagudin 14a824da2c added '-m' command line option
Added an option to override detected available ram. Can be used
to limit the amount of ram used by lrzip.
2014-06-18 16:24:19 +02:00
Con Kolivas 2c151a0d1b Fix wrong README file being included in Makefile 2014-05-30 22:48:48 +10:00
Con Kolivas b81b61cd40 Merge pull request #19 from haneefmubarak/patch-1
Full Rewrite (except for FAQ, minor changes there)
2014-05-30 22:12:41 +10:00
Con Kolivas 4aa69a104a Pass strict sizes to decompress length, rounding up only the amount we're allocating to not confuse decompression libraries 2014-05-30 22:05:51 +10:00
Con Kolivas 22496bdd5a Convert the thread locking to use cksems 2014-05-30 21:27:21 +10:00
Con Kolivas 298d6a6715 Add cksems to util.h 2014-05-30 21:05:05 +10:00
Con Kolivas f80512cb29 Merge pull request #27 from Maeyanie/patch-1
Fix 'Failed to malloc ckbuf in hash_search2' with very large files.
2013-11-04 18:41:02 -08:00
Maeyanie 2e1fc25543 Fix 'Failed to malloc ckbuf in hash_search2' with very large files.
lrzip was trying to malloc() enough memory to fit the entire length of file it was going to hash, instead of just the size of one chunk. This caused problems when combined with extremely large files.
2013-11-04 18:10:15 -05:00
Con Kolivas 6c8525893b Round up compression and decompression buffers to page size since malloc will allocate them that large anyway. 2013-09-14 12:58:31 +10:00
Con Kolivas 47de07affb Increase the compressed buffer size given to libzpaq in case of incompressible data since it does not check if it's trying to write beyond the end of the buffer. 2013-09-14 11:45:23 +10:00
Con Kolivas 6bb837761f Provide a helper function to round a value up to the nearest page size for malloc optimisations. 2013-09-14 11:41:57 +10:00
Con Kolivas d5c00f96f7 Bump version number to 0.616 2013-09-09 09:43:30 +10:00