senhuang42
7842f43197
Fix 1 file multifile logic, remove unnecessary variable assignments
2020-09-03 09:22:07 -04:00
senhuang42
dbe5305250
Adjusted extra explanation warning to always pop up if applicable
2020-09-02 08:44:42 -04:00
senhuang42
99039988a5
Fixed newline issue and adjusted wording in comment
2020-09-01 13:18:30 -04:00
senhuang42
3a7d625d6b
Cleanup comments, add function to set FIO_ctx_t.nbFilesProcessed
2020-09-01 12:54:21 -04:00
senhuang42
a03917c751
Fix the logic in printing final status updates
2020-09-01 12:46:06 -04:00
senhuang42
a6414f1247
Integrate refactor into status print for multifiles, adjust logic for printing as needed
2020-09-01 12:34:43 -04:00
senhuang42
565f116a56
Change name to ZSTD_NUMTHREADS
2020-09-01 09:02:23 -04:00
senhuang42
d54566f334
First pass at refactoring and creating new FIO_ctx_t */
2020-08-28 11:01:04 -04:00
senhuang42
01828b27e2
Improve documentation, update man
2020-08-27 17:57:20 -04:00
senhuang42
7e867ad61f
Fix potential memory leak
2020-08-26 18:52:32 -04:00
senhuang42
ef11aadc0c
Fix UTIL_requireUserConfirmation() declaration
2020-08-26 17:20:37 -04:00
senhuang42
7991c55181
Move logic into new function FIO_removeMultiFilesWarning, add support for decompression
2020-08-26 16:50:20 -04:00
senhuang42
3aec385a10
Fix merge conflicts
2020-08-26 15:43:38 -04:00
Yann Collet
a8c66881e5
Merge pull request #2283 from senhuang42/progress_bars_for_multiple_files
...
Refreshing progress bar for processing multiple files
2020-08-26 11:54:50 -07:00
senhuang42
ead2387a7e
Remove extraneous FIO_setNbFiles()
2020-08-26 12:05:04 -04:00
senhuang42
fed7e7850b
Fix bug in user prompt where line was not flushed on negative response
2020-08-26 11:57:38 -04:00
senhuang42
b6abbc3ce5
Fix single file decompression summary, remove escape code dependency, add currFileIdx field to FIO_prefs, general cleanups/bugfixes
2020-08-26 11:35:07 -04:00
senhuang42
70fa7b37ca
Added env var function for threads
2020-08-25 18:49:52 -04:00
senhuang42
96222cd195
Small formatting changes
2020-08-25 18:03:08 -04:00
senhuang42
47a9ad2ae3
Remove decompression status update
2020-08-25 17:54:00 -04:00
senhuang42
acee48d4c1
Small cleanups
2020-08-25 17:34:00 -04:00
senhuang42
a3401ca7d0
Make compatible with displaylevel = 2 and decompression
2020-08-25 17:23:47 -04:00
senhuang42
da38891a87
Add initial live update with displayLevel = 2, add new field to FIO_prefs_t
2020-08-25 16:46:47 -04:00
senhuang42
7a7cd8861a
Add initial functionality to support -q
2020-08-25 13:50:44 -04:00
senhuang42
aab11ce3db
Unified warning prompts into new function UTIL_requireUserConfirmationToProceed()
2020-08-25 11:25:49 -04:00
senhuang42
dde97de6c4
Only ask to proceed if using --rm, otherwise just display warning. -f bypasses it all. More robust tests
2020-08-24 20:20:39 -04:00
senhuang42
1acf243540
Add a warning whenever (de)compressing multiple files into one source, or into stdout
2020-08-24 19:10:03 -04:00
senhuang42
e1e41addb3
Adjust #ifndef logic
2020-08-24 17:36:36 -04:00
senhuang42
a030560d62
Add new DCtx param: validateChecksum and update unit tests
2020-08-24 17:28:00 -04:00
senhuang42
44c54a3e31
Addressing comments: more comments, cleanup, remove extra function, checksum logic
2020-08-24 16:14:19 -04:00
senhuang42
ffaa0df76d
Document change in CLI for --no-check during decompression in --help menu
2020-08-24 09:49:12 -04:00
senhuang42
e3f5f9658a
Added CLI tests for --no-check, fixed ignore checksum logic
2020-08-22 16:05:40 -04:00
senhuang42
47685ac856
Move enum into zstd.h, and fix pesky switch() logic
2020-08-21 18:18:53 -04:00
senhuang42
1b34b15e6b
Adding CLI capability to invoke decompression with no checksum
2020-08-21 17:49:30 -04:00
W. Felix Handte
953f0a072a
Fix MS Build
2020-08-10 17:28:34 -04:00
W. Felix Handte
b02cdf63b0
Clean Up Redundant Checks, Rename FIO_remove() -> FIO_removeFile()
2020-08-10 15:43:17 -04:00
W. Felix Handte
51ac0207af
Remove UTIL_statFile() and UTIL_statDir(); Decompose Former Call-Sites
2020-08-10 15:28:02 -04:00
W. Felix Handte
93dda988c8
Remove Unused Function UTIL_fileExist()
2020-08-10 15:22:53 -04:00
W. Felix Handte
76878697a4
Re-Organize and Document Prototypes in util.h
2020-08-10 15:16:14 -04:00
W. Felix Handte
c1449143c5
Share stat() Calls in Uses of UTIL_chmod()
2020-08-05 12:10:42 -04:00
W. Felix Handte
0a8aacb4db
Use stat() to Check that File Should be chmod()-ed
...
Rather than special-casing a check for `/dev/null`, this uses `stat()` to
avoid `chmod()`-ing any non-regular file. I believe this is the desirable
behavior. `UTIL_chmod()` is never called on directories at the moment, only
output files.
2020-08-05 12:00:12 -04:00
W. Felix Handte
7238cca1a1
Deduplicate Some Low-Hanging Fruit of Redundant Stat Calls
2020-08-05 01:08:34 -04:00
W. Felix Handte
44fa052599
Introduce Variants of Various UTIL Functions that Take Pre-Populated stat_t Structs
...
Instead of calling `stat()`, these functions accept the result of a previous
`stat()` call on the file in question, which will allow us to make multiple
decisions around a file without redundant `stat()` calls.
2020-08-05 01:00:06 -04:00
W. Felix Handte
b6e24bc4dc
Rename UTIL_getFileStat() -> UTIL_statFile() and UTIL_getDirectoryStat() -> UTIL_statDir()
...
I want to introduce versions of many of these functions that take pre-
populated `stat_t` objects and use those rather than doing their own redundant
`stat()` internally. These functions will have `...Stat()` suffixes. So this
commit renames these existing functions into the active voice, to avoid
confusion.
2020-08-05 00:40:16 -04:00
W. Felix Handte
1a1003f996
Mark stat_t Arg to UTIL_setFileStat() const
2020-08-05 00:35:21 -04:00
W. Felix Handte
5fbc6addb6
Additionally Convert UTIL_getFileStat() Calls to UTIL_stat() Where Appropriate
2020-08-05 00:31:48 -04:00
W. Felix Handte
69cb9e7798
Use New Stat Helper
2020-08-05 00:24:32 -04:00
W. Felix Handte
b11bea56a5
Introduce Dedicated Helper to Call stat()
2020-08-05 00:21:21 -04:00
Yann Collet
15c5e20023
updated documentation
2020-07-23 12:10:57 -07:00
Yann Collet
610c41f90f
improved 2-args macro to support both syntaxes
...
both `--long-commmand=arg` and `--long-command arg`
are supported by macro `NEXT_FIELD()`
so that the long-command only needs to be listed once.
This extends the syntax to support new syntaxes like
`-o=FILE` or `-D=dict`,
though there is no need to advertise this capability for the time being.
Also : added `NEXT_UINT32()`,
which is wrapper around `NEXT_FIELD()`
to read integer parameters.
Use the wrapper to new field, such as `--memlimit`
which can now support both syntaxes too.
2020-07-20 17:41:32 -07:00