Merge branch 'dev' of github.com:facebook/zstd into dev
This commit is contained in:
commit
d11c7bf9bf
@ -227,6 +227,9 @@ static FILE* FIO_openDstFile(const char* dstFileName)
|
|||||||
DISPLAYLEVEL(4, "Sparse File Support is automatically disabled on stdout ; try --sparse \n");
|
DISPLAYLEVEL(4, "Sparse File Support is automatically disabled on stdout ; try --sparse \n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (g_sparseFileSupport == 1) {
|
||||||
|
g_sparseFileSupport = ZSTD_SPARSE_DEFAULT;
|
||||||
|
}
|
||||||
if (!g_overwrite && strcmp (dstFileName, nulmark)) { /* Check if destination file already exists */
|
if (!g_overwrite && strcmp (dstFileName, nulmark)) { /* Check if destination file already exists */
|
||||||
f = fopen( dstFileName, "rb" );
|
f = fopen( dstFileName, "rb" );
|
||||||
if (f != 0) { /* dest file exists, prompt for overwrite authorization */
|
if (f != 0) { /* dest file exists, prompt for overwrite authorization */
|
||||||
|
@ -138,6 +138,14 @@ static __inline int IS_CONSOLE(FILE* stdStream)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef ZSTD_SPARSE_DEFAULT
|
||||||
|
# if (defined(__APPLE__) && defined(__MACH__))
|
||||||
|
# define ZSTD_SPARSE_DEFAULT 0
|
||||||
|
# else
|
||||||
|
# define ZSTD_SPARSE_DEFAULT 1
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined (__cplusplus)
|
#if defined (__cplusplus)
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,11 @@ static int usage_advanced(const char* programName)
|
|||||||
#endif
|
#endif
|
||||||
#ifndef ZSTD_NODECOMPRESS
|
#ifndef ZSTD_NODECOMPRESS
|
||||||
DISPLAY( "--test : test compressed file integrity \n");
|
DISPLAY( "--test : test compressed file integrity \n");
|
||||||
|
#if ZSTD_SPARSE_DEFAULT
|
||||||
DISPLAY( "--[no-]sparse : sparse mode (default:enabled on file, disabled on stdout)\n");
|
DISPLAY( "--[no-]sparse : sparse mode (default:enabled on file, disabled on stdout)\n");
|
||||||
|
#else
|
||||||
|
DISPLAY( "--[no-]sparse : sparse mode (default:disabled)\n");
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
DISPLAY( " -M# : Set a memory usage limit for decompression \n");
|
DISPLAY( " -M# : Set a memory usage limit for decompression \n");
|
||||||
DISPLAY( "-- : All arguments after \"--\" are treated as files \n");
|
DISPLAY( "-- : All arguments after \"--\" are treated as files \n");
|
||||||
|
Loading…
Reference in New Issue
Block a user