From e2838d9eb9fb1d0afaa0db10c0d4e081fd661960 Mon Sep 17 00:00:00 2001 From: Bimba Shrestha Date: Fri, 5 Jun 2020 03:19:30 -0500 Subject: [PATCH] Spelling mistakes --- programs/fileio.c | 4 ++-- programs/zstd.1.md | 8 ++++---- tests/playTests.sh | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/programs/fileio.c b/programs/fileio.c index 762439501..e0f7fdef2 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -810,7 +810,7 @@ static void FIO_adjustParamsForPatchFromMode(FIO_prefs_t* const prefs, comprParams->windowLog = MIN(ZSTD_WINDOWLOG_MAX, fileWindowLog); if (fileWindowLog > ZSTD_cycleLog(cParams.hashLog, cParams.strategy)) { if (!prefs->ldmFlag) - DISPLAYLEVEL(1, "long mode automaticaly triggered\n"); + DISPLAYLEVEL(1, "long mode automatically triggered\n"); FIO_setLdmFlag(prefs, 1); } if (cParams.strategy >= ZSTD_btopt) { @@ -1506,7 +1506,7 @@ static int FIO_compressFilename_dstFile(FIO_prefs_t* const prefs, } else if ( strcmp(dstFileName, stdoutmark) && strcmp(dstFileName, nulmark) && transfer_permissions) { - DISPLAYLEVEL(6, "FIO_compressFilename_dstFile: transfering permissions into dst: %s \n", dstFileName); + DISPLAYLEVEL(6, "FIO_compressFilename_dstFile: transferring permissions into dst: %s \n", dstFileName); UTIL_setFileStat(dstFileName, &statbuf); } else { DISPLAYLEVEL(6, "FIO_compressFilename_dstFile: do not transfer permissions into dst: %s \n", dstFileName); diff --git a/programs/zstd.1.md b/programs/zstd.1.md index 550e2e53f..943eafb70 100644 --- a/programs/zstd.1.md +++ b/programs/zstd.1.md @@ -129,12 +129,12 @@ the last one takes effect. Note: cannot use both this and -D together Note: `--long` mode will be automatically activated if chainLog < fileLog - (fileLog being the windowLog requried to cover the whole file). You + (fileLog being the windowLog required to cover the whole file). You can also manually force it. Node: for all levels, you can use --patch-from in --single-thread mode to improve compression ratio at the cost of speed - Note: for level 19, you can get increased compression ratio at the cost - of speed by specifying `--zstd=targetLength=` to be something large + Note: for level 19, you can get increased compression ratio at the cost + of speed by specifying `--zstd=targetLength=` to be something large (i.e 4096), and by setting a large `--zstd=chainLog=` * `-M#`, `--memory=#`: Set a memory usage limit. By default, Zstandard uses 128 MB for decompression @@ -208,7 +208,7 @@ the last one takes effect. This setting overrides default and can force sparse mode over stdout. * `--[no-]content-size`: enable / disable whether or not the original size of the file is placed in - the header of the compressed file. The default option is + the header of the compressed file. The default option is --content-size (meaning that the original size will be placed in the header). * `--rm`: remove source file(s) after successful compression or decompression diff --git a/tests/playTests.sh b/tests/playTests.sh index 20bdc3492..5bca6d133 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -1300,7 +1300,7 @@ println "\n===> patch-from long mode trigger larger file test" datagen -g5000000 > tmp_dict datagen -g5000000 > tmp_patch -zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automaticaly triggered" +zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automatically triggered" rm -rf tmp* println "\n===> large files tests " -- 2.47.2