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

QStorageInfo delivers -1 for blockSize() under Windows 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.3.0 Alpha
    • 5.12.10, 5.15.2, 6.1.0
    • Core: I/O
    • None
    • Windows
    • 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

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

        Activity

          People

            heimrich Karsten Heimrich
            moellney Michael Möllney
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change