Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG#20383215 - POSIX_FALLOCATE() CAN BE INTERRUPTED (OS ERROR NUMBER 4)
Because posix_fallocate() could be interrupted, the related error messages may be printed out in this case, which makes the internal MTR test case failing with errors/warnings. Since this error message about the interruption may not help users too much, it is proper to just ignore this error of EINTR and go through to write zeroes to the file. Along with this change, it now also tries writing zeroes when the error is EINVAL. RB: 19056 Reviewed-by: Jimmy Yang <jimmy.yang@oracle.com>
- Loading branch information
Bin Su
committed
Mar 16, 2018
1 parent
7a689ac
commit 262e665
Showing
1 changed file
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters