Sparse file support is now enabled by default
authorYann Collet <yann.collet.73@gmail.com>
Fri, 17 Apr 2015 18:42:07 +0000 (19:42 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Fri, 17 Apr 2015 18:42:07 +0000 (19:42 +0100)
programs/lz4.1
programs/lz4cli.c
programs/lz4io.c

index a9b5195..a79fed3 100644 (file)
@@ -185,7 +185,7 @@ independently, and the resulting name of the compressed file will be
 hence for a file. It won't work with unknown source size, such as stdin or pipe.
 .TP
 .B \--[no-]sparse 
enable sparse file (default:disabled)(experimental)
sparse file support (default:enabled)
 .TP
 .B \-l
  use Legacy format (useful for Linux Kernel compression)
index d77ef5b..da18169 100644 (file)
@@ -175,7 +175,7 @@ static int usage_advanced(void)
     /* DISPLAY( " -BX    : enable block checksum (default:disabled)\n");   *//* Option currently inactive */
     DISPLAY( "--no-frame-crc : disable stream checksum (default:enabled)\n");
     DISPLAY( "--content-size : compressed frame includes original size (default:not present)\n");
-    DISPLAY( "--sparse       : enable sparse file (default:disabled)(experimental)\n");
+    DISPLAY( "--[no-]sparse  : sparse file support (default:enabled)\n");
     DISPLAY( "Benchmark arguments :\n");
     DISPLAY( " -b     : benchmark file(s)\n");
     DISPLAY( " -i#    : iteration loops [1-9](default : 3), benchmark mode only\n");
index 7d4fc55..e0c69d8 100644 (file)
@@ -131,7 +131,7 @@ static int g_blockSizeId = LZ4IO_BLOCKSIZEID_DEFAULT;
 static int g_blockChecksum = 0;
 static int g_streamChecksum = 1;
 static int g_blockIndependence = 1;
-static int g_sparseFileSupport = 0;
+static int g_sparseFileSupport = 1;
 static int g_contentSizeFlag = 0;
 
 static const int minBlockSizeID = 4;