Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.12.10, 5.15.2, 6.1.0
-
None
-
-
8
-
c7248a38799470bda1fb5367a3c281c0b1ba54d0
-
Team 2 Foundation_Sprint 43, Team 2 Foundation_Sprint 44, Team 2 Foundation_Sprint 45, Team 2 Foundation_Sprint 46
Description
The class QStorageInfo seems to deliver -1 for blockSize() under Windows 10.
The docs mention, that -1 is deliverd, if QStorageInfo can not detect the block size.
However:
The device delivers the system id of the drive under windows. Should this be enough to find out the block size?
As a side note:
Maybe adding this is half the way to have unbuffered write under Windows, too.
In a testing QFile:write vs unbuffered Windows API Write I had a speed up of 1.3 GB/sec to 1.8 GB/sec on an U.2 SSD saving 100MB files.
Attachments
For Gerrit Dashboard: QTBUG-93976 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
375291,7 | WIP:Implement fetching physical QStorageInfo::blockSize() under Windows | dev | qt/qtbase | Status: NEW | -2 | 0 |
374273,9 | Implement fetching physical QStorageInfo::blockSize() under Windows | dev | qt/qtbase | Status: MERGED | +2 | 0 |