Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.4.2
-
None
-
CentOS6.6 x64 GNOME Qt 5.4.2
Description
minimal sample code:
#include <QStorageInfo> #include <QDebug> int main() { QStorageInfo sys("/sys"); QStorageInfo sys1("/sys123"); // here it can output the right filesystemType : sysfs qDebug() << "/sys fstype:" << sys.fileSystemType(); // /sys123 is an existed directory I create, it's filesystemType should be ext4 // but it recognize it the same as sysfs qDebug() << "/sys123 fstype:" << sys1.fileSystemType(); }
I try several times and find that,
if the prefix of the path containing the mount point,
like /sys123 containing /sys, it would recongnize it /sys,
the same like /proca/888 and /procpaum would recognize as /proc,
Attachments
For Gerrit Dashboard: QTBUG-49498 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
141216,6 | QStorageInfo: fix matching of mountpoints to sibling directories | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |