zchunk.git
7 years agoMake sure executables get installed
Jonathan Dieter [Tue, 10 Apr 2018 15:10:43 +0000 (18:10 +0300)]
Make sure executables get installed

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoAdd ability to get index based on file location
Jonathan Dieter [Tue, 10 Apr 2018 13:00:04 +0000 (16:00 +0300)]
Add ability to get index based on file location

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoRewrite binaries to use new API
Jonathan Dieter [Tue, 10 Apr 2018 12:59:43 +0000 (15:59 +0300)]
Rewrite binaries to use new API

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoReorganize the main header so it's easier to understand
Jonathan Dieter [Tue, 10 Apr 2018 12:59:18 +0000 (15:59 +0300)]
Reorganize the main header so it's easier to understand

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoMassive work changing API to support zck_read and zck_write functions
Jonathan Dieter [Tue, 10 Apr 2018 12:57:19 +0000 (15:57 +0300)]
Massive work changing API to support zck_read and zck_write functions

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoRename dl.c/write_data to dl.c/dl_write_data as we use write_data()
Jonathan Dieter [Wed, 4 Apr 2018 07:30:08 +0000 (10:30 +0300)]
Rename dl.c/write_data to dl.c/dl_write_data as we use write_data()
elsewhere

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoRename zck_compress to zck_write and zck_decompress to zck_read and
Jonathan Dieter [Tue, 3 Apr 2018 10:02:26 +0000 (13:02 +0300)]
Rename zck_compress to zck_write and zck_decompress to zck_read and
reorder some functions in comp.c

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoRename io functions
Jonathan Dieter [Tue, 3 Apr 2018 07:20:01 +0000 (10:20 +0300)]
Rename io functions

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoWhen compressing file, automatically start compression if it hasn't already
Jonathan Dieter [Mon, 26 Mar 2018 19:05:01 +0000 (22:05 +0300)]
When compressing file, automatically start compression if it hasn't already
been started.

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoRemove infinite loop if there's no dict in file
Jonathan Dieter [Mon, 26 Mar 2018 09:30:07 +0000 (12:30 +0300)]
Remove infinite loop if there's no dict in file

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoFix compression so it works correctly if there's no dict
Jonathan Dieter [Mon, 26 Mar 2018 09:29:50 +0000 (12:29 +0300)]
Fix compression so it works correctly if there's no dict

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoChange compression so it's streamed. Decompression is still on a chunk-by-
Jonathan Dieter [Sat, 24 Mar 2018 14:54:19 +0000 (16:54 +0200)]
Change compression so it's streamed.  Decompression is still on a chunk-by-
chunk basis.

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoSwitch to multi-step chunk addition to pave the way for streaming
Jonathan Dieter [Fri, 23 Mar 2018 13:36:46 +0000 (15:36 +0200)]
Switch to multi-step chunk addition to pave the way for streaming
compression

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoStore uncompressed size in index
Jonathan Dieter [Fri, 23 Mar 2018 11:51:24 +0000 (13:51 +0200)]
Store uncompressed size in index

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoChange name of compressed length in index to comp_length in preparation
Jonathan Dieter [Fri, 23 Mar 2018 10:48:10 +0000 (12:48 +0200)]
Change name of compressed length in index to comp_length in preparation
for adding uncompressed length

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoMake a number of zckDL fields private
Jonathan Dieter [Fri, 23 Mar 2018 10:35:55 +0000 (12:35 +0200)]
Make a number of zckDL fields private

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoUse add_project_arguments instead of use_global_arguments
Jonathan Dieter [Thu, 22 Mar 2018 11:13:16 +0000 (13:13 +0200)]
Use add_project_arguments instead of use_global_arguments

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoMore documentation in zck.h
Jonathan Dieter [Thu, 22 Mar 2018 09:00:23 +0000 (11:00 +0200)]
More documentation in zck.h

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoSome more documentation on zck binary
Jonathan Dieter [Thu, 22 Mar 2018 08:28:30 +0000 (10:28 +0200)]
Some more documentation on zck binary

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoRename zckRange to zckRangeItem and zckRangeInfo to zckRange
Jonathan Dieter [Thu, 22 Mar 2018 08:27:34 +0000 (10:27 +0200)]
Rename zckRange to zckRangeItem and zckRangeInfo to zckRange

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoRename zckIndex to zckIndexItem and zckIndexInfo to zckIndex
Jonathan Dieter [Thu, 22 Mar 2018 08:26:02 +0000 (10:26 +0200)]
Rename zckIndex to zckIndexItem and zckIndexInfo to zckIndex

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoMore documentation
Jonathan Dieter [Thu, 22 Mar 2018 08:24:34 +0000 (10:24 +0200)]
More documentation

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoInitial rudimentary documentation for zck.h
Jonathan Dieter [Wed, 21 Mar 2018 19:25:28 +0000 (21:25 +0200)]
Initial rudimentary documentation for zck.h

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoAdd index size to download amount since we're guaranteed to have to
Jonathan Dieter [Wed, 21 Mar 2018 19:06:25 +0000 (21:06 +0200)]
Add index size to download amount since we're guaranteed to have to
download the target index

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoFix zckdl to work with compressed integers
Jonathan Dieter [Wed, 21 Mar 2018 18:57:50 +0000 (20:57 +0200)]
Fix zckdl to work with compressed integers

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoInitial work in switching to compressed integers in header and index
Jonathan Dieter [Wed, 21 Mar 2018 13:08:35 +0000 (15:08 +0200)]
Initial work in switching to compressed integers in header and index

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoWrite to output file rather than temporary file
Jonathan Dieter [Tue, 20 Mar 2018 14:07:34 +0000 (16:07 +0200)]
Write to output file rather than temporary file

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoExtra error checking
Jonathan Dieter [Tue, 20 Mar 2018 14:07:03 +0000 (16:07 +0200)]
Extra error checking

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoSplit multirange parsing into multipart.c
Jonathan Dieter [Mon, 19 Mar 2018 19:11:51 +0000 (21:11 +0200)]
Split multirange parsing into multipart.c

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoSwitch download code to POSIX extended regex for more flexibility
Jonathan Dieter [Mon, 19 Mar 2018 13:12:29 +0000 (15:12 +0200)]
Switch download code to POSIX extended regex for more flexibility

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoFinish code to allow downloading of zck files
Jonathan Dieter [Tue, 13 Mar 2018 19:10:04 +0000 (21:10 +0200)]
Finish code to allow downloading of zck files

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoAdd preindex_size so we can easily figure out how far to seek in file, and
Jonathan Dieter [Tue, 13 Mar 2018 19:09:02 +0000 (21:09 +0200)]
Add preindex_size so we can easily figure out how far to seek in file, and
add offset to zck_read_header so we're getting real locations

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoWe can now download the missing parts of a zck file. Still need to write
Jonathan Dieter [Sun, 11 Mar 2018 08:58:19 +0000 (10:58 +0200)]
We can now download the missing parts of a zck file.  Still need to write
the code to combine them with the old parts.

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoMake sure we clear zckRangeInfo when closing it
Jonathan Dieter [Sun, 11 Mar 2018 08:57:18 +0000 (10:57 +0200)]
Make sure we clear zckRangeInfo when closing it

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoRemove unsuitable multipart_parser code
Jonathan Dieter [Sun, 11 Mar 2018 08:56:55 +0000 (10:56 +0200)]
Remove unsuitable multipart_parser code

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoMake zckDL struct public and add in function to get temporary fd and
Jonathan Dieter [Sun, 11 Mar 2018 08:56:41 +0000 (10:56 +0200)]
Make zckDL struct public and add in function to get temporary fd and
download range based on url and zckDL

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoFix bug in detecting failure to allocate zckCtx
Jonathan Dieter [Sun, 11 Mar 2018 08:54:39 +0000 (10:54 +0200)]
Fix bug in detecting failure to allocate zckCtx

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoAdd null parameter checking for public functions
Jonathan Dieter [Wed, 7 Mar 2018 11:31:14 +0000 (13:31 +0200)]
Add null parameter checking for public functions

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoFinish refactoring zckIndex and zckIndexInfo
Jonathan Dieter [Wed, 7 Mar 2018 11:30:49 +0000 (13:30 +0200)]
Finish refactoring zckIndex and zckIndexInfo

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoAdd missing test directory
Jonathan Dieter [Wed, 7 Mar 2018 10:18:33 +0000 (12:18 +0200)]
Add missing test directory

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoUpdate LICENSE and README
Jonathan Dieter [Wed, 7 Mar 2018 10:17:08 +0000 (12:17 +0200)]
Update LICENSE and README

7 years agoInitial commit
Jonathan Dieter [Wed, 7 Mar 2018 07:48:33 +0000 (09:48 +0200)]
Initial commit

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
7 years agoInitial commit
Jonathan Dieter [Wed, 7 Mar 2018 07:46:21 +0000 (09:46 +0200)]
Initial commit