[MDEV-24175] Windows - fix detection of whether file is on SSD Created: 2020-11-09 Updated: 2022-02-17 Resolved: 2020-11-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform Windows, Storage Engine - InnoDB |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4.18, 10.5.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vladislav Vaintroub | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
As pointed in https://devblogs.microsoft.com/oldnewthing/20201023-00/?p=104395, correct detection of SSD for a file with given name is more tedious than we're doing it. What we're doing
This works in some cases, but in some cases, it does not. It does not work for volumes that have mount point which is not drive letter. And it does not work for volumes that consist of multiple physical disk (DeviceIoControl does a shortcut, it will forward request to the physical disk, if volume has a single disk, but return error otherwise) What we should be doing instead
|