Extract sparse files as sparse
authorEric Biggers <ebiggers3@gmail.com>
Thu, 15 Dec 2016 04:49:55 +0000 (20:49 -0800)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 15 Dec 2016 05:38:23 +0000 (21:38 -0800)
commit7b13472d9515dc87a15bd43a9822ac42217d3af9
tree283c6b50a3a1a97b69b7e129544a533caa16ce63
parentbb499ce3ea390ce3bd9b334ab5817015247d4b47
Extract sparse files as sparse

When extracting a stream belonging to an inode with
FILE_ATTRIBUTE_SPARSE_FILE set, before writing any data, mark the
extracted stream as sparse if needed and skip preallocating space.
Then, skip writing zero regions.  This makes it so that sparse files are
still sparse after extraction.
NEWS
doc/man1/wimlib-imagex-apply.1
include/wimlib/apply.h
src/extract.c
src/ntfs-3g_apply.c
src/unix_apply.c
src/win32_apply.c