summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.h
diff options
context:
space:
mode:
authorTakayuki MATSUOKA <takayuki.matsuoka@gmail.com>2015-02-12 06:46:02 (GMT)
committerTakayuki MATSUOKA <takayuki.matsuoka@gmail.com>2015-03-02 04:38:23 (GMT)
commit97679fa5a17d79f87c0a2d1e2d44c3215d48958b (patch)
tree9d9db433095cf72cc1de2c7d2a8914e2b59078cc /programs/lz4io.h
parent67f3b4141af0a33e9590e4678f06724076b7b69e (diff)
downloadlz4-97679fa5a17d79f87c0a2d1e2d44c3215d48958b.zip
lz4-97679fa5a17d79f87c0a2d1e2d44c3215d48958b.tar.gz
lz4-97679fa5a17d79f87c0a2d1e2d44c3215d48958b.tar.bz2
Google Code Issue 155: lz4 cli should support sparse file
https://code.google.com/p/lz4/issues/detail?id=155 This is experimental implementation. Just a proof of concept. It works Linux and Windows. # Build To build experimental version, define 'LZ4IO_ENABLE_SPARSE_FILE' like the following command : make lz4programs 'CFLAGS=-O3 -DLZ4IO_ENABLE_SPARSE_FILE=1' ./programs/lz4 -h You will see "EXPERIMENTAL_SPARSE_FILE" as lz4 revision : "*** LZ4 command line interface 64-bits EXPERIMENTAL_SPARSE_FILE, by Yann Collet (...) ***" # Experiment This experimental version adds option "-x" for sparse file for decompression. You can use this option like this : ./programs/lz4 -9 -f my-file ./programs/lz4 -d -f -x my-file.lz4 my-file.lz4.out cmp my-file my-file.lz4.out
Diffstat (limited to 'programs/lz4io.h')
-rw-r--r--programs/lz4io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/programs/lz4io.h b/programs/lz4io.h
index 7869a43..a0c6119 100644
--- a/programs/lz4io.h
+++ b/programs/lz4io.h
@@ -75,3 +75,8 @@ int LZ4IO_setStreamChecksumMode(int xxhash);
/* Default setting : 0 (no notification) */
int LZ4IO_setNotificationLevel(int level);
+
+#if defined(LZ4IO_ENABLE_SPARSE_FILE)
+/* Default setting : 0 (sparseFile = 0; disable sparse file) */
+int LZ4IO_setSparseFile(int yes);
+#endif