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

QFile thinks that /dev/sda is sequential device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.5.1
    • Core: I/O
    • None
    • Gentoo GNU/Linux, Qt 5.5.1
    • f57d8f1341587e6b2aa84b8404aa218432584206

      KDE Partition Manager uses QFile to write some data directly to raw block devices, e.g. /dev/sda. This worked with Qt 4.x but it stopped working after porting to Qt5.

      The problem is that after opening /dev/sda as a file, QFile thinks that it is sequential device even though block devices are random access devices.

      I'm attaching test program (unfortunately it has to be run as root because block devices are not accessible to other users). When I run "sudo test" it prints true (so /dev/sda is reported as sequential).

        For Gerrit Dashboard: QTBUG-51666
        # Subject Branch Project Status CR V

            alex1973tr Alex Trotsenko
            stikonas Andrius
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes