mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 21:00:16 -05:00
Propagate non-capacity errors during parity split growth
This commit is contained in:
parent
bcc06e10c6
commit
5f68fda7ae
2 changed files with 23 additions and 8 deletions
|
|
@ -886,9 +886,14 @@ void windows_errno(DWORD error)
|
|||
case ERROR_ALREADY_EXISTS : /* in CreateDirectoryW() if already exists */
|
||||
errno = EEXIST;
|
||||
break;
|
||||
case ERROR_DISK_FULL :
|
||||
case ERROR_DISK_FULL : /* in SetEndOfFile() */
|
||||
case ERROR_HANDLE_DISK_FULL : /* in SetEndOfFile() */
|
||||
case ERROR_DISK_QUOTA_EXCEEDED : /* in SetEndOfFile() */
|
||||
errno = ENOSPC;
|
||||
break;
|
||||
case ERROR_FILE_TOO_LARGE : /* in SetEndOfFile() */
|
||||
errno = EFBIG;
|
||||
break;
|
||||
case ERROR_FILENAME_EXCED_RANGE :
|
||||
case ERROR_BUFFER_OVERFLOW :
|
||||
case ERROR_INSUFFICIENT_BUFFER : /* in MultiByteToWideChar() and WideCharToMultiByte() */
|
||||
|
|
@ -910,6 +915,8 @@ void windows_errno(DWORD error)
|
|||
errno = EPERM;
|
||||
break;
|
||||
case ERROR_IO_DEVICE : /* in ReadFile() and WriteFile() */
|
||||
case ERROR_FILE_CORRUPT :
|
||||
case ERROR_DISK_CORRUPT :
|
||||
case ERROR_CRC : /* in ReadFile() */
|
||||
errno = EIO;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue