mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Recognize the Windows ERROR_IO_DEVICE
Convert it to EIO, without reporting te "Unexpected error" message.
This commit is contained in:
parent
9a36f44aea
commit
6a082b5d05
1 changed files with 4 additions and 1 deletions
|
|
@ -690,9 +690,12 @@ static void windows_errno(DWORD error)
|
|||
case ERROR_NOT_SUPPORTED : /* in CreateSymlinkW() if not present in kernel32 */
|
||||
errno = ENOSYS;
|
||||
break;
|
||||
case ERROR_PRIVILEGE_NOT_HELD : /* in CreateSymlinkW if no SeCreateSymbolicLinkPrivilige permission */
|
||||
case ERROR_PRIVILEGE_NOT_HELD : /* in CreateSymlinkW() if no SeCreateSymbolicLinkPrivilige permission */
|
||||
errno = EPERM;
|
||||
break;
|
||||
case ERROR_IO_DEVICE : /* in ReadFile() and WriteFile() */
|
||||
errno = EIO;
|
||||
break;
|
||||
default :
|
||||
log_fatal("Unexpected Windows error %d.\n", (int)error);
|
||||
errno = EIO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue