Turn off sparse mode for OS X by default

This commit is contained in:
Nick Terrell
2017-03-31 15:16:43 -07:00
parent 6476c51b86
commit 96fe545a18
3 changed files with 15 additions and 0 deletions
+3
View File
@@ -227,6 +227,9 @@ static FILE* FIO_openDstFile(const char* dstFileName)
DISPLAYLEVEL(4, "Sparse File Support is automatically disabled on stdout ; try --sparse \n");
}
} else {
if (ZSTD_SPARSE_DEFAULT == 0 && g_sparseFileSupport == 1) {
g_sparseFileSupport = 0;
}
if (!g_overwrite && strcmp (dstFileName, nulmark)) { /* Check if destination file already exists */
f = fopen( dstFileName, "rb" );
if (f != 0) { /* dest file exists, prompt for overwrite authorization */