mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Uses an extended error report for FlushFileBuffers().
This is at now safer than ignoring the INVALID_HANDLE error.
This commit is contained in:
parent
876bddcf4c
commit
09aaccc9e9
1 changed files with 10 additions and 4 deletions
|
|
@ -818,12 +818,18 @@ int windows_fsync(int fd)
|
|||
* FlushFileBuffers returns this error if the handle
|
||||
* doesn't support buffering, like the console output.
|
||||
*
|
||||
* We had report also for ATA-over-Ethernet reporting this
|
||||
* error.
|
||||
* We had a report that also ATA-over-Ethernet returns
|
||||
* this * error, but not enough sure to ignore it.
|
||||
* So, we use now an extended error reporting.
|
||||
*/
|
||||
return 0;
|
||||
fprintf(stderr, "Unexpected Windows INVALID_HANDLE error in FlushFileBuffers().\n");
|
||||
fprintf(stderr, "Are you using ATA-over-Ethernet ? Please report it.\n");
|
||||
|
||||
case ERROR_ACCESS_DENIED
|
||||
/* normal error processing */
|
||||
windows_errno(error);
|
||||
return -1;
|
||||
|
||||
case ERROR_ACCESS_DENIED :
|
||||
/*
|
||||
* FlushFileBuffers returns this error for read-only
|
||||
* data, that cannot have to be flushed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue