Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93976

QStorageInfo delivers -1 for blockSize() under Windows 10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.10, 5.15.2, 6.1.0
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Platform/s:
      Windows
    • Story Points:
      8
    • Sprint:
      Team 2 Foundation_Sprint 43

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            heimrich Karsten Heimrich
            Reporter:
            moellney Michael Möllney
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes