]> wimlib.net Git - wimlib/log
wimlib
8 years agolzms_common.c: Split lzms_x86_filter into subroutines
Eric Biggers [Fri, 7 Aug 2015 02:55:37 +0000 (21:55 -0500)]
lzms_common.c: Split lzms_x86_filter into subroutines

8 years agoReplace SourceForge references with wimlib.net
Eric Biggers [Mon, 3 Aug 2015 02:21:06 +0000 (21:21 -0500)]
Replace SourceForge references with wimlib.net

8 years agowimlib-imagex.1: correct license statement
Eric Biggers [Sat, 25 Jul 2015 16:19:10 +0000 (11:19 -0500)]
wimlib-imagex.1: correct license statement

8 years agoadd System Compression support
Eric Biggers [Wed, 22 Jul 2015 01:28:59 +0000 (20:28 -0500)]
add System Compression support

8 years agodecompress_common.h: make bitstream_read_bytes() fill buffer itself
Eric Biggers [Mon, 20 Jul 2015 05:02:07 +0000 (00:02 -0500)]
decompress_common.h: make bitstream_read_bytes() fill buffer itself

8 years agolzx_decompress.c: switch to out* pointer style
Eric Biggers [Mon, 20 Jul 2015 04:59:48 +0000 (23:59 -0500)]
lzx_decompress.c: switch to out* pointer style

8 years agoxpress_decompress.c: consolidate XPRESS decompressor into one function
Eric Biggers [Mon, 20 Jul 2015 04:36:19 +0000 (23:36 -0500)]
xpress_decompress.c: consolidate XPRESS decompressor into one function

8 years agoxpress_decompress.c: make 'lens' and 'decode_table' share memory
Eric Biggers [Mon, 20 Jul 2015 04:35:31 +0000 (23:35 -0500)]
xpress_decompress.c: make 'lens' and 'decode_table' share memory

8 years agomake_huffman_decode_table(): Note that 'lens' may alias 'decode_table'
Eric Biggers [Mon, 20 Jul 2015 04:30:08 +0000 (23:30 -0500)]
make_huffman_decode_table(): Note that 'lens' may alias 'decode_table'

8 years agoAvoid branch in 'num_bits == 0' branch when peeking bits
Eric Biggers [Mon, 20 Jul 2015 04:13:53 +0000 (23:13 -0500)]
Avoid branch in 'num_bits == 0' branch when peeking bits

8 years agoMake read_huffsym() return unsigned int
Eric Biggers [Mon, 20 Jul 2015 03:18:10 +0000 (22:18 -0500)]
Make read_huffsym() return unsigned int

8 years agontfs-3g_apply.c: only call sd_fixup() if ntfs_set_ntfs_acl() fails
Eric Biggers [Mon, 13 Jul 2015 00:49:05 +0000 (19:49 -0500)]
ntfs-3g_apply.c: only call sd_fixup() if ntfs_set_ntfs_acl() fails

8 years agontfs-3g_capture.c: remove unused path_len argument
Eric Biggers [Sat, 18 Jul 2015 01:26:11 +0000 (20:26 -0500)]
ntfs-3g_capture.c: remove unused path_len argument

8 years agoverify: update progress per-chunk instead of per-blob
Eric Biggers [Thu, 2 Jul 2015 23:59:59 +0000 (18:59 -0500)]
verify: update progress per-chunk instead of per-blob

8 years agoUse list_replace() instead of list_transfer()
Eric Biggers [Thu, 2 Jul 2015 23:44:48 +0000 (18:44 -0500)]
Use list_replace() instead of list_transfer()

8 years agoinode_table: remove unused num_entries member
Eric Biggers [Thu, 2 Jul 2015 23:16:40 +0000 (18:16 -0500)]
inode_table: remove unused num_entries member

8 years agoblob_table.c: use power-of-2 sized hash table for faster hashing
Eric Biggers [Tue, 30 Jun 2015 01:46:51 +0000 (20:46 -0500)]
blob_table.c: use power-of-2 sized hash table for faster hashing

SHA-1 is a cryptographic hash, so we do not need to worry about
the distribution.

8 years agodentry.c: Use simpler check that handles both deep and cyclic directory structures
Eric Biggers [Tue, 30 Jun 2015 01:46:48 +0000 (20:46 -0500)]
dentry.c: Use simpler check that handles both deep and cyclic directory structures

8 years agoAdd Windows tests for empty and max length reparse points
Eric Biggers [Sat, 27 Jun 2015 22:55:33 +0000 (17:55 -0500)]
Add Windows tests for empty and max length reparse points

8 years agontfs-3g_apply.c: fix inode reuse
Eric Biggers [Sat, 27 Jun 2015 21:17:08 +0000 (16:17 -0500)]
ntfs-3g_apply.c: fix inode reuse

NTFS inodes were not being reused as intended following commit 26a90546f2
("ntfs-3g_apply.c: Do not use i_visited").

8 years agoUpdate NEWS
Eric Biggers [Thu, 25 Jun 2015 03:16:04 +0000 (22:16 -0500)]
Update NEWS

8 years agowin32_apply.c: fix extraction of empty reparse points
Eric Biggers [Tue, 23 Jun 2015 05:28:56 +0000 (00:28 -0500)]
win32_apply.c: fix extraction of empty reparse points

8 years agontfs-3g_apply.c: fix extraction of empty reparse points
Eric Biggers [Tue, 23 Jun 2015 03:22:44 +0000 (22:22 -0500)]
ntfs-3g_apply.c: fix extraction of empty reparse points

8 years agodentry.c: correctly read empty reparse stream
Eric Biggers [Tue, 23 Jun 2015 05:19:12 +0000 (00:19 -0500)]
dentry.c: correctly read empty reparse stream

8 years agofile_io.c: get rid of raw_pread() and raw_pwrite()
Eric Biggers [Wed, 10 Jun 2015 00:35:04 +0000 (19:35 -0500)]
file_io.c: get rid of raw_pread() and raw_pwrite()

8 years agofile_io.c: set errno=EINVAL on unexpected end of file
Eric Biggers [Wed, 10 Jun 2015 00:45:38 +0000 (19:45 -0500)]
file_io.c: set errno=EINVAL on unexpected end of file

8 years agofile_io.c: fix handling of EINTR
Eric Biggers [Wed, 10 Jun 2015 00:22:43 +0000 (19:22 -0500)]
file_io.c: fix handling of EINTR

The old code would accidentally increment bytes_remaining...

8 years agoMove AUTHORS information into README
Eric Biggers [Tue, 9 Jun 2015 02:51:01 +0000 (21:51 -0500)]
Move AUTHORS information into README

8 years agoUpdates to README and README.WINDOWS
Eric Biggers [Tue, 9 Jun 2015 01:49:06 +0000 (20:49 -0500)]
Updates to README and README.WINDOWS

8 years agoConsistently forbid directory hard links from being honored on capture
Eric Biggers [Sun, 7 Jun 2015 19:47:07 +0000 (14:47 -0500)]
Consistently forbid directory hard links from being honored on capture

8 years agoAdd new helper function for attaching newly scanned dentry tree
Eric Biggers [Sun, 7 Jun 2015 19:07:30 +0000 (14:07 -0500)]
Add new helper function for attaching newly scanned dentry tree

8 years agoAdd new helper function for ignoring scanned directory entries
Eric Biggers [Sun, 7 Jun 2015 14:56:41 +0000 (09:56 -0500)]
Add new helper function for ignoring scanned directory entries

8 years agoextract.c: control characters are invalid in filenames on Windows
Eric Biggers [Sun, 7 Jun 2015 14:38:19 +0000 (09:38 -0500)]
extract.c: control characters are invalid in filenames on Windows

8 years agoextract.c: trailing dot or space in filename is okay with Windows NT APIs
Eric Biggers [Sun, 7 Jun 2015 13:59:43 +0000 (08:59 -0500)]
extract.c: trailing dot or space in filename is okay with Windows NT APIs

8 years agoDon't ftruncate() after rewriting blob uncompressed
Eric Biggers [Sat, 6 Jun 2015 19:26:37 +0000 (14:26 -0500)]
Don't ftruncate() after rewriting blob uncompressed

8 years agontfs-3g_capture.c: save rpreserved field and fix "no reparse data" case
Eric Biggers [Sat, 6 Jun 2015 01:00:34 +0000 (20:00 -0500)]
ntfs-3g_capture.c: save rpreserved field and fix "no reparse data" case

8 years agowin32_capture.c: save rpreserved field
Eric Biggers [Sat, 6 Jun 2015 00:57:44 +0000 (19:57 -0500)]
win32_capture.c: save rpreserved field

8 years agov1.8.2-BETA
Eric Biggers [Tue, 2 Jun 2015 01:42:32 +0000 (20:42 -0500)]
v1.8.2-BETA

8 years agoAdd helper functions for passing paths to progress callbacks
Eric Biggers [Mon, 1 Jun 2015 04:44:09 +0000 (23:44 -0500)]
Add helper functions for passing paths to progress callbacks

8 years agosecurity.c: align total_length immediately after reading
Eric Biggers [Mon, 1 Jun 2015 04:20:23 +0000 (23:20 -0500)]
security.c: align total_length immediately after reading

8 years agoAdd helper function for rate-limiting progress messages
Eric Biggers [Mon, 1 Jun 2015 03:36:56 +0000 (22:36 -0500)]
Add helper function for rate-limiting progress messages

8 years agoSimplify wildcard pattern expansion
Eric Biggers [Sun, 31 May 2015 22:28:04 +0000 (17:28 -0500)]
Simplify wildcard pattern expansion

8 years agoRemove remaining DEBUG() messages
Eric Biggers [Sun, 31 May 2015 21:43:14 +0000 (16:43 -0500)]
Remove remaining DEBUG() messages

8 years agoextract.c: add missing will_extract_dentry() check
Eric Biggers [Sun, 31 May 2015 21:33:04 +0000 (16:33 -0500)]
extract.c: add missing will_extract_dentry() check

When skipping a dentry tree, not all dentries in that tree will
necessarily be in the extraction list.

8 years agoRename inode_first_dentry() => inode_any_dentry()
Eric Biggers [Sun, 31 May 2015 16:00:01 +0000 (11:00 -0500)]
Rename inode_first_dentry() => inode_any_dentry()

8 years agoDon't bother clearing i_devno after inode number reassignment
Eric Biggers [Sun, 31 May 2015 15:55:41 +0000 (10:55 -0500)]
Don't bother clearing i_devno after inode number reassignment

8 years agontfs-3g_apply.c: Do not use i_visited
Eric Biggers [Sun, 31 May 2015 15:43:49 +0000 (10:43 -0500)]
ntfs-3g_apply.c: Do not use i_visited

The number of inodes examined is limited by MAX_OPEN_FILES, and we can
make it faster in the common case by checking i_num_streams.

8 years agotemplate.c: iterate through inodes instead of dentries
Eric Biggers [Sun, 31 May 2015 15:36:24 +0000 (10:36 -0500)]
template.c: iterate through inodes instead of dentries

8 years agoMake some declarations formatted the same as the definitions
Eric Biggers [Sun, 31 May 2015 15:19:16 +0000 (10:19 -0500)]
Make some declarations formatted the same as the definitions

8 years agoDon't use entire word for d_extraction_name_nchars
Eric Biggers [Sun, 31 May 2015 15:08:51 +0000 (10:08 -0500)]
Don't use entire word for d_extraction_name_nchars

8 years agoRename _full_path => d_full_path
Eric Biggers [Sun, 31 May 2015 15:13:06 +0000 (10:13 -0500)]
Rename _full_path => d_full_path

8 years agoRename subdir_offset => d_subdir_offset
Eric Biggers [Sun, 31 May 2015 15:06:11 +0000 (10:06 -0500)]
Rename subdir_offset => d_subdir_offset

8 years agoRename tmp_list => d_tmp_list
Eric Biggers [Sun, 31 May 2015 15:04:27 +0000 (10:04 -0500)]
Rename tmp_list => d_tmp_list

8 years agoRename is_orphan => d_is_orphan
Eric Biggers [Sun, 31 May 2015 15:03:39 +0000 (10:03 -0500)]
Rename is_orphan => d_is_orphan

8 years agoRename tmp_flag => d_tmp_flag
Eric Biggers [Sun, 31 May 2015 15:03:09 +0000 (10:03 -0500)]
Rename tmp_flag => d_tmp_flag

8 years agoRename is_win32_name => d_is_win32_name
Eric Biggers [Sun, 31 May 2015 15:02:39 +0000 (10:02 -0500)]
Rename is_win32_name => d_is_win32_name

8 years agoMove d_name before d_short_name
Eric Biggers [Sun, 31 May 2015 15:01:21 +0000 (10:01 -0500)]
Move d_name before d_short_name

8 years agoRename dentry name fields
Eric Biggers [Sun, 31 May 2015 14:57:23 +0000 (09:57 -0500)]
Rename dentry name fields

    file_name          => d_name
    file_name_nbytes   => d_name_nbytes
    short_name         => d_short_name
    short_name_nbytes  => d_short_name_nbytes

8 years agoRename i_hlist => i_hlist_node
Eric Biggers [Sun, 31 May 2015 14:52:13 +0000 (09:52 -0500)]
Rename i_hlist => i_hlist_node

8 years agoRename i_dentry => i_alias_list and d_alias => d_alias_node
Eric Biggers [Sun, 31 May 2015 14:43:34 +0000 (09:43 -0500)]
Rename i_dentry => i_alias_list and d_alias => d_alias_node

8 years agoRename num_remaining_streams => i_num_remaining_streams
Eric Biggers [Sun, 31 May 2015 14:31:11 +0000 (09:31 -0500)]
Rename num_remaining_streams => i_num_remaining_streams

8 years agoSave memory by using a singly-linked list for extraction aliases
Eric Biggers [Sun, 31 May 2015 05:36:25 +0000 (00:36 -0500)]
Save memory by using a singly-linked list for extraction aliases

8 years agoUse macros to iterate through extraction aliases
Eric Biggers [Sun, 31 May 2015 05:30:23 +0000 (00:30 -0500)]
Use macros to iterate through extraction aliases

8 years agoSave memory by consolidating inode flags
Eric Biggers [Sun, 31 May 2015 05:21:27 +0000 (00:21 -0500)]
Save memory by consolidating inode flags

8 years agoSave memory by using hlist for i_dentry
Eric Biggers [Sun, 31 May 2015 05:18:00 +0000 (00:18 -0500)]
Save memory by using hlist for i_dentry

8 years agoSave memory by avoiding padding after sha1_hash fields
Eric Biggers [Sun, 31 May 2015 05:13:08 +0000 (00:13 -0500)]
Save memory by avoiding padding after sha1_hash fields

8 years agoIterate through inodes instead of dentries in xml_update_image_info()
Eric Biggers [Sun, 31 May 2015 04:16:33 +0000 (23:16 -0500)]
Iterate through inodes instead of dentries in xml_update_image_info()

Slightly simpler and faster.

8 years agoReduce stack usage of recursive scan functions
Eric Biggers [Sat, 30 May 2015 20:48:23 +0000 (15:48 -0500)]
Reduce stack usage of recursive scan functions

Allocate large on-stack arrays in leaf functions only.

8 years agontfs-3g_capture.c: cleanup
Eric Biggers [Sat, 30 May 2015 20:48:22 +0000 (15:48 -0500)]
ntfs-3g_capture.c: cleanup

8 years agoextract.c: simplify extract_from_tmpfile()
Eric Biggers [Sat, 30 May 2015 20:48:21 +0000 (15:48 -0500)]
extract.c: simplify extract_from_tmpfile()

Since win32_apply.c no longer will create external backing references at
blob extraction time, extract_from_tmpfile() can be simplified.

8 years agoNew helper function: inode_has_security_descriptor()
Eric Biggers [Sat, 30 May 2015 20:48:20 +0000 (15:48 -0500)]
New helper function: inode_has_security_descriptor()

8 years agoUpdate wimmount documentation
Eric Biggers [Sat, 30 May 2015 20:48:19 +0000 (15:48 -0500)]
Update wimmount documentation

8 years agoReparse point updates
Eric Biggers [Sat, 30 May 2015 20:48:18 +0000 (15:48 -0500)]
Reparse point updates

- Rename 'struct reparse_data' => 'struct link_reparse_point'
- Rename parse_reparse_data() => parse_link_reparse_data()
- Rename make_reparse_data() => make_link_reparse_point()
- Rename rp_unknown_1 => unknown_0x54 and move out of reparse point union
- Rename rp_unknown_2 => rp_reserved and store/restore
- Rename not_rpfixed => rp_flags and use 0x0001 as rpfix flag
- Use 'struct reparse_buffer_disk' in more places and not raw byte array
- Add new helper function: complete_reparse_point()
- Eliminate need for various assertions in reparse.c
- Improve handling of NT namespace paths in wim_inode_readlink()
- More closely follow POSIX readlink semantics in wim_inode_readlink()
- Set reparse tag and file attributes in wim_inode_readlink()
- Handle reparse point fixup in wim_inode_readlink() and support fixing
  up link targets in mounted WIM image
- Handle slashes between root and root-relative portion consistently
  between UNIX and Windows, and allow lossless handling of trailing
  slashes
- Use 0 as RP_NOT_FIXED in win32_apply.c
- Improve comments

8 years agoNew helper macro: ALIGN()
Eric Biggers [Sat, 30 May 2015 20:48:16 +0000 (15:48 -0500)]
New helper macro: ALIGN()

8 years agoUse explicit casting in ctype macros
Eric Biggers [Sat, 30 May 2015 20:48:15 +0000 (15:48 -0500)]
Use explicit casting in ctype macros

8 years agosha1.c: annotate load which may be unaligned
Eric Biggers [Sat, 30 May 2015 20:48:14 +0000 (15:48 -0500)]
sha1.c: annotate load which may be unaligned

8 years agoenlarge_blob_table(): remove unnecessary hlist_del()
Eric Biggers [Sat, 30 May 2015 20:48:13 +0000 (15:48 -0500)]
enlarge_blob_table(): remove unnecessary hlist_del()

8 years agoNew helper: wim_reshdr_to_desc_and_blob()
Eric Biggers [Sat, 30 May 2015 20:48:12 +0000 (15:48 -0500)]
New helper: wim_reshdr_to_desc_and_blob()

8 years agowrite.c: do not remove empty blobs (not possible anymore)
Eric Biggers [Sat, 30 May 2015 20:48:11 +0000 (15:48 -0500)]
write.c: do not remove empty blobs (not possible anymore)

8 years agoresource reading cleanups
Eric Biggers [Sat, 30 May 2015 20:48:09 +0000 (15:48 -0500)]
resource reading cleanups

8 years agoAdd GUID helper functions
Eric Biggers [Sat, 30 May 2015 20:48:08 +0000 (15:48 -0500)]
Add GUID helper functions

8 years agoClean up pipable WIM extraction
Eric Biggers [Sat, 30 May 2015 20:48:07 +0000 (15:48 -0500)]
Clean up pipable WIM extraction

8 years agowrite.c: handle empty buffers in write_wim_resource_from_buffer()
Eric Biggers [Sat, 30 May 2015 20:48:06 +0000 (15:48 -0500)]
write.c: handle empty buffers in write_wim_resource_from_buffer()

8 years agoDisallow empty blobs from being read
Eric Biggers [Sat, 30 May 2015 20:48:05 +0000 (15:48 -0500)]
Disallow empty blobs from being read

8 years agoinode.c: do not create blob from zero-sized data buffer
Eric Biggers [Sat, 30 May 2015 20:48:04 +0000 (15:48 -0500)]
inode.c: do not create blob from zero-sized data buffer

Moving forwards towards eliminating zero-size blobs: make
inode_add_stream_with_data() and inode_replace_stream_data() use a NULL
blob pointer for zero-length buffers.  Currently this can happen if a
Windows reparse point has no reparse data or if an empty named data
stream is created in a mounted WIM image.

8 years agoRequire size_in_wim == uncompressed_size for uncompressed resources
Eric Biggers [Sat, 30 May 2015 20:48:03 +0000 (15:48 -0500)]
Require size_in_wim == uncompressed_size for uncompressed resources

It required quite a bit of extra code to handle this case, which really
should just be considered invalid.

8 years agoUse little endian types for 'struct wim_header_disk'
Eric Biggers [Sat, 30 May 2015 20:48:02 +0000 (15:48 -0500)]
Use little endian types for 'struct wim_header_disk'

8 years agoFix tagged item parsing infinite loop when 32-bit and len=0xFFFFFFF8
Eric Biggers [Sat, 30 May 2015 20:48:00 +0000 (15:48 -0500)]
Fix tagged item parsing infinite loop when 32-bit and len=0xFFFFFFF8

8 years agoutil.c: Simplify strdup and wcsdup
Eric Biggers [Sat, 30 May 2015 20:47:59 +0000 (15:47 -0500)]
util.c: Simplify strdup and wcsdup

8 years agoUse "EXIT" instead of "exit" in bash trap statements
Eric Biggers [Sat, 30 May 2015 20:47:58 +0000 (15:47 -0500)]
Use "EXIT" instead of "exit" in bash trap statements

The lower case version does not work in a Turkish locale.  The upper case
version is what the bash docs actually mention and is what bash actually
checks against using strcasecmp().

8 years agov1.8.1 v1.8.1
Eric Biggers [Sun, 17 May 2015 22:30:45 +0000 (17:30 -0500)]
v1.8.1

8 years agowrite.c: Move and fix check for defaulting to solid compression
Eric Biggers [Sun, 17 May 2015 21:47:47 +0000 (16:47 -0500)]
write.c: Move and fix check for defaulting to solid compression

This check should be made higher up, not in write_file_data_blobs().

In addition, it must be checked that WIMLIB_WRITE_FLAG_PIPABLE is not set.

8 years agowimlib-imagex: Adjust wording of extract progress message
Eric Biggers [Sun, 17 May 2015 21:17:08 +0000 (16:17 -0500)]
wimlib-imagex: Adjust wording of extract progress message

8 years agoDisallow image metadata in solid resources
Eric Biggers [Sat, 16 May 2015 15:23:00 +0000 (10:23 -0500)]
Disallow image metadata in solid resources

8 years agowin32_apply: Improved warning messages for WIMBoot extraction
Eric Biggers [Tue, 12 May 2015 04:09:05 +0000 (23:09 -0500)]
win32_apply: Improved warning messages for WIMBoot extraction

8 years agowin32_apply: Stricter checks of resource format for WOF external backing
Eric Biggers [Tue, 12 May 2015 04:07:33 +0000 (23:07 -0500)]
win32_apply: Stricter checks of resource format for WOF external backing

- Only allow resources from WIM files with original file format
- Only allow XPRESS 4K/8K/16K/32K and LZX 32K resources

8 years agowin32_apply: Support multiple source WIM files for WIMBoot extraction
Eric Biggers [Tue, 12 May 2015 01:41:06 +0000 (20:41 -0500)]
win32_apply: Support multiple source WIM files for WIMBoot extraction

8 years agowiminfo: fix string definitions for Windows
Eric Biggers [Sat, 9 May 2015 01:30:55 +0000 (20:30 -0500)]
wiminfo: fix string definitions for Windows

8 years agoencoding.c: Upgrade upcase table and rewrite decompression code
Eric Biggers [Thu, 7 May 2015 02:38:30 +0000 (21:38 -0500)]
encoding.c: Upgrade upcase table and rewrite decompression code

8 years agoAlways use abbreviated integer types in library code
Eric Biggers [Thu, 7 May 2015 01:26:21 +0000 (20:26 -0500)]
Always use abbreviated integer types in library code