summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-03-11 18:42:37 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-03-11 18:42:37 (GMT)
commit12ab41571ef7fd11b8b2013aa943beae373cef8a (patch)
treebc358cdcebd2c920d3df24b9656fda69cbc0c914 /programs/lz4cli.c
parente3f33d25793193e005eadf4c04c2fbcf2eae497e (diff)
downloadlz4-12ab41571ef7fd11b8b2013aa943beae373cef8a.zip
lz4-12ab41571ef7fd11b8b2013aa943beae373cef8a.tar.gz
lz4-12ab41571ef7fd11b8b2013aa943beae373cef8a.tar.bz2
Preliminary support for sparse files
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 10b980f..7ecfa93 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -176,6 +176,7 @@ static int usage_advanced(void)
DISPLAY( " -BD : Block dependency (improve compression ratio)\n");
/* DISPLAY( " -BX : enable block checksum (default:disabled)\n"); *//* Option currently inactive */
DISPLAY( " -Sx : disable stream checksum (default:enabled)\n");
+ DISPLAY( " -X : enable sparse file (default:disabled)(experimental)\n");
DISPLAY( "Benchmark arguments :\n");
DISPLAY( " -b : benchmark file(s)\n");
DISPLAY( " -i# : iteration loops [1-9](default : 3), benchmark mode only\n");
@@ -390,6 +391,9 @@ int main(int argc, char** argv)
/* Modify Stream properties */
case 'S': if (argument[1]=='x') { LZ4IO_setStreamChecksumMode(0); argument++; break; } else { badusage(); }
+ /* Enable Sparse File support (experimental) */
+ case 'X': LZ4IO_setSparseFile(1); break;
+
/* Benchmark */
case 'b': bench=1; multiple_inputs=1;
if (inFileNames == NULL)