split: fix I/O error handling for device full conditions#11239
split: fix I/O error handling for device full conditions#11239sylvestre wants to merge 1 commit intouutils:mainfrom
Conversation
|
GNU testsuite comparison: |
Merging this PR will degrade performance by 17.56%
Performance Changes
Comparing Footnotes
|
|
GNU testsuite comparison: |
Should fix tests/split/split-io-err.sh
|
GNU testsuite comparison: |
|
I was looking at implementing the same patch - what do you think, did you avoid merging this because of the performance concerns? |
| fn custom_write<T: Write>( | ||
| bytes: &[u8], | ||
| writer: &mut T, | ||
| settings: &Settings, | ||
| error_context: Option<(&str, &mut bool)>, | ||
| ) -> io::Result<usize> { |
There was a problem hiding this comment.
I would split this function into two functions to avoid the Option for error_context and the if let conditions in the function.
Should fix tests/split/split-io-err.sh