[MDEV-13691] my_write() sets inappropriate errno, if WriteFile fails with ERROR_FILE_SYSTEM_LIMITATION Created: 2017-08-31 Updated: 2018-01-09 Resolved: 2017-08-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform Windows |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.0.33 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vladislav Vaintroub | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
WriteFile may fail if number of NTFS extents reached limit. GetLastError() returns 665 (ERROR_FILE_SYSTEM_LIMITATION), and this is mapped to catch-all generic EINVAL, In one case , as reported by support, mariabackup was returning EINVAL during write of a large file, and it required procmon tracing to find out the actual reason for failure. |
| Comments |
| Comment by Vladislav Vaintroub [ 2017-08-31 ] |
|
https://github.com/MariaDB/server/commit/66eb9774e43dc96e7d45d800b4860354f81d258d |