wimlib
5 years agocompute_inverse_suffix_array(): Use r for rank, not i
Eric Biggers [Thu, 2 Jan 2014 16:34:00 +0000 (10:34 -0600)]
compute_inverse_suffix_array(): Use r for rank, not i

5 years agoRemove unused LZ_DEBUG() macro
Eric Biggers [Thu, 2 Jan 2014 16:32:21 +0000 (10:32 -0600)]
Remove unused LZ_DEBUG() macro

5 years agolz_optimal.h: Minor comment fixes
Eric Biggers [Thu, 2 Jan 2014 16:24:03 +0000 (10:24 -0600)]
lz_optimal.h: Minor comment fixes

5 years agolz_optimal.h: Fix typedefs
Eric Biggers [Thu, 2 Jan 2014 16:15:54 +0000 (10:15 -0600)]
lz_optimal.h:  Fix typedefs

5 years agolz_optimal.h: Move struct lz_match_chooser towards top
Eric Biggers [Thu, 2 Jan 2014 16:13:16 +0000 (10:13 -0600)]
lz_optimal.h:  Move struct lz_match_chooser towards top

5 years agoimagex: set_compress_slow(): Remove unused variable
Eric Biggers [Thu, 2 Jan 2014 16:00:06 +0000 (10:00 -0600)]
imagex: set_compress_slow(): Remove unused variable

5 years agolzms-compress.c: Fix initialization of lzms_default
Eric Biggers [Thu, 2 Jan 2014 15:59:20 +0000 (09:59 -0600)]
lzms-compress.c: Fix initialization of lzms_default

5 years agolzms-compress.c: Remove unused constant
Eric Biggers [Thu, 2 Jan 2014 15:57:07 +0000 (09:57 -0600)]
lzms-compress.c: Remove unused constant

5 years agolzms-compress.c: Remove unused code for lzms_fast_encode()
Eric Biggers [Thu, 2 Jan 2014 15:55:50 +0000 (09:55 -0600)]
lzms-compress.c:  Remove unused code for lzms_fast_encode()

5 years agolzms-decompress.c: Fix indentation
Eric Biggers [Thu, 2 Jan 2014 07:08:10 +0000 (01:08 -0600)]
lzms-decompress.c:  Fix indentation

5 years agoUpdate references to LZMS compressor
Eric Biggers [Thu, 2 Jan 2014 06:51:32 +0000 (00:51 -0600)]
Update references to LZMS compressor

5 years agolzms_init_compressor(): Do not zero end of window
Eric Biggers [Thu, 2 Jan 2014 06:43:18 +0000 (00:43 -0600)]
lzms_init_compressor(): Do not zero end of window

5 years agoAdd wimlib_get_compressor_needed_memory()
Eric Biggers [Thu, 2 Jan 2014 06:28:48 +0000 (00:28 -0600)]
Add wimlib_get_compressor_needed_memory()

5 years agocompress_parallel.c: Use 1 buffer per thread if chunks are big
Eric Biggers [Thu, 2 Jan 2014 05:11:59 +0000 (23:11 -0600)]
compress_parallel.c:  Use 1 buffer per thread if chunks are big

5 years agoLZMS: Accelerate slot-finding
Eric Biggers [Thu, 2 Jan 2014 04:54:03 +0000 (22:54 -0600)]
LZMS:  Accelerate slot-finding

5 years agoUpdate LZMS compressor
Eric Biggers [Thu, 2 Jan 2014 01:54:32 +0000 (19:54 -0600)]
Update LZMS compressor

5 years agoFix error string for WIMLIB_ERR_INVALID_COMPRESSION_TYPE
Eric Biggers [Wed, 1 Jan 2014 22:21:29 +0000 (16:21 -0600)]
Fix error string for WIMLIB_ERR_INVALID_COMPRESSION_TYPE

5 years agoReplace num_fast_bytes => nice_match_length
Eric Biggers [Wed, 1 Jan 2014 21:43:19 +0000 (15:43 -0600)]
Replace num_fast_bytes => nice_match_length

There is no binary tree match-finder anymore, so 'nice_match_length'
makes more sense.

5 years agolz_sarray.{c,h}: Cleanup, better comments
Eric Biggers [Wed, 1 Jan 2014 21:39:22 +0000 (15:39 -0600)]
lz_sarray.{c,h}:  Cleanup, better comments

5 years agoUse BSD-style license on selected files
Eric Biggers [Wed, 1 Jan 2014 17:48:29 +0000 (11:48 -0600)]
Use BSD-style license on selected files

5 years agolz_optimal.h: Cleanup, better comments
Eric Biggers [Wed, 1 Jan 2014 17:34:14 +0000 (11:34 -0600)]
lz_optimal.h: Cleanup, better comments

5 years agoUpdate LZMS match-choosing
Eric Biggers [Mon, 30 Dec 2013 06:52:50 +0000 (00:52 -0600)]
Update LZMS match-choosing

5 years agoFactor out LZ match-choosing code
Eric Biggers [Mon, 30 Dec 2013 04:50:45 +0000 (22:50 -0600)]
Factor out LZ match-choosing code

5 years agoUpdate LZMS LRU queue handling
Eric Biggers [Mon, 30 Dec 2013 02:59:08 +0000 (20:59 -0600)]
Update LZMS LRU queue handling

5 years agoFix test for length 2 matches
Eric Biggers [Mon, 30 Dec 2013 02:02:50 +0000 (20:02 -0600)]
Fix test for length 2 matches

5 years agoSeparate suffix array match-finder from LZX compressor
Eric Biggers [Mon, 30 Dec 2013 01:37:39 +0000 (19:37 -0600)]
Separate suffix array match-finder from LZX compressor

5 years agoimagex-update.1.in: Add note about setting ignore case
Eric Biggers [Tue, 31 Dec 2013 19:48:57 +0000 (13:48 -0600)]
imagex-update.1.in:  Add note about setting ignore case

5 years agomkwinpeimg.1: Add suggestion to use wimlib-imagex
Eric Biggers [Tue, 31 Dec 2013 19:43:28 +0000 (13:43 -0600)]
mkwinpeimg.1:  Add suggestion to use wimlib-imagex

5 years agomkwinpeimg: Make compatible with Syslinux version 6
Eric Biggers [Tue, 31 Dec 2013 19:36:39 +0000 (13:36 -0600)]
mkwinpeimg: Make compatible with Syslinux version 6

5 years agoimagex_progress_func(): Fix variable
Eric Biggers [Tue, 31 Dec 2013 00:13:36 +0000 (18:13 -0600)]
imagex_progress_func(): Fix variable

5 years agoFix completed_streams of write streams progress and update docs
Eric Biggers [Mon, 30 Dec 2013 22:58:32 +0000 (16:58 -0600)]
Fix completed_streams of write streams progress and update docs

5 years agoread_utf8_file_contents(): Move check for BOM here
Eric Biggers [Mon, 30 Dec 2013 14:45:06 +0000 (08:45 -0600)]
read_utf8_file_contents(): Move check for BOM here

5 years agoparse_path_list_file(): Ignore UTF-8 BOM
Eric Biggers [Mon, 30 Dec 2013 08:50:20 +0000 (02:50 -0600)]
parse_path_list_file(): Ignore UTF-8 BOM

5 years agowimlib_vmsg(): Use correct error string buffer length
Eric Biggers [Mon, 30 Dec 2013 08:39:40 +0000 (02:39 -0600)]
wimlib_vmsg():  Use correct error string buffer length

5 years agowin32_set_security_descriptor(): Check handle before closing
Eric Biggers [Mon, 30 Dec 2013 07:36:48 +0000 (01:36 -0600)]
win32_set_security_descriptor(): Check handle before closing

5 years agowildcard.c: Don't use broken PathMatchSpec()
Eric Biggers [Mon, 30 Dec 2013 07:21:24 +0000 (01:21 -0600)]
wildcard.c:  Don't use broken PathMatchSpec()

5 years agoread_path_list_file(): Handle missing terminal newline
Eric Biggers [Sun, 29 Dec 2013 21:49:34 +0000 (15:49 -0600)]
read_path_list_file(): Handle missing terminal newline

5 years agoextract.c: Fix short name reordering
Eric Biggers [Sun, 29 Dec 2013 21:41:23 +0000 (15:41 -0600)]
extract.c:  Fix short name reordering

5 years agoread_wim_lookup_table(): Correctly get uncompressed size of packs
Eric Biggers [Sun, 29 Dec 2013 20:58:48 +0000 (14:58 -0600)]
read_wim_lookup_table():  Correctly get uncompressed size of packs

5 years agoMisc fixes
Eric Biggers [Sun, 29 Dec 2013 20:21:10 +0000 (14:21 -0600)]
Misc fixes

5 years agoxml.c: Add support for PKEYCONFIGVERSION
Eric Biggers [Sun, 29 Dec 2013 18:12:04 +0000 (12:12 -0600)]
xml.c:  Add support for PKEYCONFIGVERSION

5 years agoReturn new error code when trying to open encrypted WIM
Eric Biggers [Sun, 29 Dec 2013 17:39:54 +0000 (11:39 -0600)]
Return new error code when trying to open encrypted WIM

5 years agoread_wim_lookup_table(): Fix error paths
Eric Biggers [Sun, 29 Dec 2013 03:56:17 +0000 (21:56 -0600)]
read_wim_lookup_table(): Fix error paths

5 years agowrite_stream_process_chunk(): Remove dead assignment
Eric Biggers [Sun, 29 Dec 2013 02:48:31 +0000 (20:48 -0600)]
write_stream_process_chunk(): Remove dead assignment

5 years agoextract_trees(): Fix extraction of multiple paths to stdout
Eric Biggers [Sun, 29 Dec 2013 02:44:21 +0000 (20:44 -0600)]
extract_trees():  Fix extraction of multiple paths to stdout

5 years agowimlib_extract_flags(): Free memory used in linked extraction mode
Eric Biggers [Sun, 29 Dec 2013 02:40:59 +0000 (20:40 -0600)]
wimlib_extract_flags(): Free memory used in linked extraction mode

5 years agowimlib_extract_paths(): Validate extract flags
Eric Biggers [Sun, 29 Dec 2013 02:40:22 +0000 (20:40 -0600)]
wimlib_extract_paths():  Validate extract flags

5 years agoextract_trees(): Send correct end progress msg
Eric Biggers [Sun, 29 Dec 2013 02:39:11 +0000 (20:39 -0600)]
extract_trees(): Send correct end progress msg

5 years agoUpdate docs for struct wimlib_progress_info_extract
Eric Biggers [Sun, 29 Dec 2013 02:38:53 +0000 (20:38 -0600)]
Update docs for struct wimlib_progress_info_extract

5 years agontfs-3g_capture.c: Fix erroneous replacement
Eric Biggers [Sun, 29 Dec 2013 01:38:06 +0000 (19:38 -0600)]
ntfs-3g_capture.c:  Fix erroneous replacement

5 years agoExpose symlink exclusions through WIMLIB_PROGRESS_MSG_SCAN_DENTRY messages
Eric Biggers [Sun, 29 Dec 2013 01:09:32 +0000 (19:09 -0600)]
Expose symlink exclusions through WIMLIB_PROGRESS_MSG_SCAN_DENTRY messages

5 years agoAdd extract_full_stream_to_fd()
Eric Biggers [Sun, 29 Dec 2013 00:04:28 +0000 (18:04 -0600)]
Add extract_full_stream_to_fd()

5 years agowrite_stream_list(): Do not allocate chunk buffer if NONE compression
Eric Biggers [Sat, 28 Dec 2013 23:59:26 +0000 (17:59 -0600)]
write_stream_list(): Do not allocate chunk buffer if NONE compression

5 years agowrite_stream_uncompressed(): Do not issue unnecessary hard error
Eric Biggers [Sat, 28 Dec 2013 23:50:27 +0000 (17:50 -0600)]
write_stream_uncompressed(): Do not issue unnecessary hard error

5 years agowrite_chunk(): Remove redundant statements
Eric Biggers [Sat, 28 Dec 2013 23:11:18 +0000 (17:11 -0600)]
write_chunk(): Remove redundant statements

5 years agoUpdate docs for path extraction
Eric Biggers [Sat, 28 Dec 2013 22:45:36 +0000 (16:45 -0600)]
Update docs for path extraction

5 years agowimextract: Fix man page
Eric Biggers [Sat, 28 Dec 2013 19:53:26 +0000 (13:53 -0600)]
wimextract:  Fix man page

5 years agowin32_build_dentry_tree(): Strip trailing slashes from paths
Eric Biggers [Sat, 28 Dec 2013 19:47:31 +0000 (13:47 -0600)]
win32_build_dentry_tree(): Strip trailing slashes from paths

5 years agowin32_build_dentry_tree(): Fix handling of maximum length path
Eric Biggers [Sat, 28 Dec 2013 19:47:17 +0000 (13:47 -0600)]
win32_build_dentry_tree(): Fix handling of maximum length path

5 years agowin32_create_file(): Handle access problems
Eric Biggers [Sat, 28 Dec 2013 19:30:17 +0000 (13:30 -0600)]
win32_create_file(): Handle access problems

5 years agotest-imagex-ntfs: Try to work around yet another race condition
Eric Biggers [Sat, 28 Dec 2013 17:29:28 +0000 (11:29 -0600)]
test-imagex-ntfs:  Try to work around yet another race condition

5 years agoUpdate version number to v1.6.0
Eric Biggers [Sat, 28 Dec 2013 17:15:41 +0000 (11:15 -0600)]
Update version number to v1.6.0

5 years agoTweak progress messages
Eric Biggers [Sat, 28 Dec 2013 17:12:31 +0000 (11:12 -0600)]
Tweak progress messages

5 years agoFix encrypted capture on Windows
Eric Biggers [Sat, 28 Dec 2013 16:56:07 +0000 (10:56 -0600)]
Fix encrypted capture on Windows

5 years agoUpdate README files
Eric Biggers [Sat, 28 Dec 2013 16:43:32 +0000 (10:43 -0600)]
Update README files

5 years agoUpdate NEWS
Eric Biggers [Sat, 28 Dec 2013 16:19:17 +0000 (10:19 -0600)]
Update NEWS

5 years agowimextract: Update help
Eric Biggers [Sat, 28 Dec 2013 16:08:10 +0000 (10:08 -0600)]
wimextract: Update help

5 years agoAdd tests for pathlist extraction
Eric Biggers [Sat, 28 Dec 2013 16:00:09 +0000 (10:00 -0600)]
Add tests for pathlist extraction

5 years agoTweak support for extracting paths
Eric Biggers [Sat, 28 Dec 2013 15:37:38 +0000 (09:37 -0600)]
Tweak support for extracting paths

5 years agoAllow configurable case sensitivity
Eric Biggers [Sat, 28 Dec 2013 04:43:24 +0000 (22:43 -0600)]
Allow configurable case sensitivity

Set WIMLIB_IMAGEX_IGNORE_CASE for wimlib-imagex, or pass
WIMLIB_INIT_FLAG_DEFAULT_CASE_SENSITIVE or
WIMLIB_INIT_FLAG_DEFAULT_CASE_INSENSITIVE to wimlib_global_init().

5 years agoAdd support for extract list files
Eric Biggers [Sat, 28 Dec 2013 00:29:31 +0000 (18:29 -0600)]
Add support for extract list files

5 years agoUpdate wimlib-imagex documentation
Eric Biggers [Fri, 27 Dec 2013 04:23:58 +0000 (22:23 -0600)]
Update wimlib-imagex documentation

5 years agowimlib-imagex: Update help
Eric Biggers [Fri, 27 Dec 2013 00:22:14 +0000 (18:22 -0600)]
wimlib-imagex: Update help

5 years agowimexport: Add --chunk-size, --pack-streams
Eric Biggers [Fri, 27 Dec 2013 00:10:21 +0000 (18:10 -0600)]
wimexport: Add --chunk-size, --pack-streams

5 years agoRemove WIMLIB_WRITE_FLAG_NO_PACK_STREAMS
Eric Biggers [Fri, 27 Dec 2013 00:00:09 +0000 (18:00 -0600)]
Remove WIMLIB_WRITE_FLAG_NO_PACK_STREAMS

5 years agotest-imagex-ntfs: Increase filesystem size
Eric Biggers [Thu, 26 Dec 2013 23:38:00 +0000 (17:38 -0600)]
test-imagex-ntfs:  Increase filesystem size

5 years agowrite.c: Do not raw-copy packed resources
Eric Biggers [Thu, 26 Dec 2013 23:32:45 +0000 (17:32 -0600)]
write.c: Do not raw-copy packed resources

5 years agoAdd wimlib_set_output_{pack_chunk_size,compression_type}()
Eric Biggers [Thu, 26 Dec 2013 23:28:58 +0000 (17:28 -0600)]
Add wimlib_set_output_{pack_chunk_size,compression_type}()

5 years agowimexport: Only keep chunk size if compression type unchanged
Eric Biggers [Thu, 26 Dec 2013 23:11:28 +0000 (17:11 -0600)]
wimexport: Only keep chunk size if compression type unchanged

5 years agolzms-compress.c: Add extra space for lz_analyze_block()
Eric Biggers [Thu, 26 Dec 2013 23:11:04 +0000 (17:11 -0600)]
lzms-compress.c:  Add extra space for lz_analyze_block()

5 years agolzms-compress.c: Find matches with lz_analyze_block()
Eric Biggers [Thu, 26 Dec 2013 22:06:06 +0000 (16:06 -0600)]
lzms-compress.c:  Find matches with lz_analyze_block()

5 years agoUpdate LZMS compressor - can now output literals
Eric Biggers [Thu, 26 Dec 2013 20:42:20 +0000 (14:42 -0600)]
Update LZMS compressor - can now output literals

5 years agoShare LZMS x86 filter between compressor and decompressor
Eric Biggers [Thu, 26 Dec 2013 02:57:17 +0000 (20:57 -0600)]
Share LZMS x86 filter between compressor and decompressor

5 years agostreamifier_cb(): Fix update of cur_stream_offset
Eric Biggers [Thu, 26 Dec 2013 02:50:54 +0000 (20:50 -0600)]
streamifier_cb(): Fix update of cur_stream_offset

read_stream_list() expects it to be zeroed to avoid a second call to
end_stream().

5 years agoUpdate NEWS and README.WINDOWS
Eric Biggers [Wed, 25 Dec 2013 18:57:39 +0000 (12:57 -0600)]
Update NEWS and README.WINDOWS

5 years ago{de,}compress.c: Remove unneeded array initializers
Eric Biggers [Wed, 25 Dec 2013 18:05:40 +0000 (12:05 -0600)]
{de,}compress.c: Remove unneeded array initializers

5 years agowimlib_split(): Do not allow splitting WIMs containing packed streams
Eric Biggers [Wed, 25 Dec 2013 17:58:49 +0000 (11:58 -0600)]
wimlib_split(): Do not allow splitting WIMs containing packed streams

5 years agodo_compress(): Fix return value in error path
Eric Biggers [Wed, 25 Dec 2013 17:57:32 +0000 (11:57 -0600)]
do_compress(): Fix return value in error path

5 years agowrite_stream_list(): Write streams uncompressed when advantageous
Eric Biggers [Wed, 25 Dec 2013 15:32:42 +0000 (09:32 -0600)]
write_stream_list():  Write streams uncompressed when advantageous

5 years agoread_compressed_resource(): Fix use of decompressor
Eric Biggers [Wed, 25 Dec 2013 14:40:59 +0000 (08:40 -0600)]
read_compressed_resource(): Fix use of decompressor

5 years agoAdd deprecated compression/decompression functions
Eric Biggers [Wed, 25 Dec 2013 14:34:36 +0000 (08:34 -0600)]
Add deprecated compression/decompression functions

Don't want to increase the shared library version number as there are no
other incompatibilities.

5 years agoMake --disable-multithreaded-compression work again
Eric Biggers [Wed, 25 Dec 2013 07:12:14 +0000 (01:12 -0600)]
Make --disable-multithreaded-compression work again

5 years agoRemove --enable-more-debug and --disable-custom-memory-allocator options
Eric Biggers [Wed, 25 Dec 2013 07:03:56 +0000 (01:03 -0600)]
Remove --enable-more-debug and --disable-custom-memory-allocator options

The former was of little use due to the lack of DEBUG2() statements, and
the latter barely saved any space and wasn't worth having an option for.

5 years agoRemove obsolete ChangeLog
Eric Biggers [Wed, 25 Dec 2013 06:46:22 +0000 (00:46 -0600)]
Remove obsolete ChangeLog

5 years agoComment fixes
Eric Biggers [Wed, 25 Dec 2013 06:12:59 +0000 (00:12 -0600)]
Comment fixes

5 years agoxpress_decompress(): Fix comment
Eric Biggers [Wed, 25 Dec 2013 05:50:39 +0000 (23:50 -0600)]
xpress_decompress(): Fix comment

5 years agoNew compression/decompression API
Eric Biggers [Wed, 25 Dec 2013 04:53:18 +0000 (22:53 -0600)]
New compression/decompression API

To avoid the proliferation of functions for compressing and decompressing
in different formats, allow all the compression algorithms to be accessed
using a single API:

Compression:
- wimlib_create_compressor()
- wimlib_compress()
- wimlib_free_compressor()
- wimlib_set_default_compressor_params()

Decompression:
- wimlib_create_decompressor()
- wimlib_decompress()
- wimlib_free_decompressor()
- wimlib_set_default_decompressor_params()

This also makes it easier to allocate larger blocks of memory or do other
initializations in any decompressor or compressor implementation.

This commit adds a skeleton for the LZMS compressor but it doesn't do
anything yet.

5 years agowimlib_overwrite(): Don't create multiple packs per WIM
Eric Biggers [Tue, 24 Dec 2013 18:00:12 +0000 (12:00 -0600)]
wimlib_overwrite(): Don't create multiple packs per WIM

For compatibility with WIMGAPI, don't allow updating a WIM to contain
multiple stream packs; instead compress new streams independently.

This could change if it turns out there is a way to cause WIMGAPI to
recognize multiple packs.

5 years agoFix progress for exclusion of absolute symlinks
Eric Biggers [Tue, 24 Dec 2013 16:58:21 +0000 (10:58 -0600)]
Fix progress for exclusion of absolute symlinks

5 years agoScan progress: Add # of files, directories, and bytes scanned
Eric Biggers [Tue, 24 Dec 2013 16:36:53 +0000 (10:36 -0600)]
Scan progress:  Add # of files, directories, and bytes scanned