-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dd: support the [io]flag=nocache option #4432
Conversation
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
clippy found a bunch of new warnings here :) |
Yeah, I'm having trouble getting the right combination of |
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
Linux failed with:
|
GNU testsuite comparison:
|
Hmm, on my machine |
Add the `bytes_total` field to the `ReadStat` struct. This lets the main loop of `dd` keep track of the total number of bytes read.
Add the `Input::discard_cache()` and `Output::discard_cache()` functions. These allow discarding the filesystem cache when `dd` no longer needs to access a specified portion of the input or output file, respectively.
Add support for the `iflag=nocache` and `oflag=nocache` to make `dd` discard the filesystem cache for the processed portion of the input or output file.
GNU testsuite comparison:
|
GNU testsuite comparison:
|
Okay please take another look. The |
Add support for the
iflag=nocache
andoflag=nocache
to makedd
discard the filesystem cache for the processed portion of the input or
output file.
Fixes GNU test file
tests/dd/nocache.sh
.