Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7
-
None
-
987abb925 (dev), f3782300d (6.7), 264b7a673 (dev), d688eab7d (6.7)
Description
This was reported as https://bugs.kde.org/show_bug.cgi?id=479841
QStorageInfo info("/home/nico"); qWarning() << info.isValid() << info.isReady() << info.bytesAvailable() << info.bytesTotal(); return !info.isValid();
prints "false false -1 -1" in Qt 6.7 (qtbase commit c413bd9366a4c1b844334fe2ca0fa058c7dce141).
In 6.6 it prints something like "true true 429724770304 785341480960", as expected.
This was tested on a btrfs setup. I have not tested other filesystems.
Bisecting suggests this is caused by https://codereview.qt-project.org/c/qt/qtbase/+/513010
Output of cat /proc/self/mountinfo:
65 1 0:32 /root / rw,relatime shared:1 - btrfs /dev/mapper/luks-3345d33e-339e-4ef6-b687-69727dbb1c9c rw,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,subvol id=256,subvol=/root 34 65 0:5 / /dev rw,nosuid shared:2 - devtmpfs devtmpfs rw,seclabel,size=4096k,nr_inodes=3940489,mode=755,inode64 35 34 0:24 / /dev/shm rw,nosuid,nodev shared:3 - tmpfs tmpfs rw,seclabel,inode64 36 34 0:25 / /dev/pts rw,nosuid,noexec,relatime shared:4 - devpts devpts rw,seclabel,gid=5,mode=620,ptmxmode=000 37 65 0:23 / /sys rw,nosuid,nodev,noexec,relatime shared:5 - sysfs sysfs rw,seclabel 38 37 0:6 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:6 - securityfs securityfs rw 39 37 0:27 / /sys/fs/cgroup rw,nosuid,nodev,noexec,relatime shared:7 - cgroup2 cgroup2 rw,seclabel,nsdelegate,memory_recursiveprot 40 37 0:28 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:8 - pstore pstore rw,seclabel 41 37 0:29 / /sys/firmware/efi/efivars rw,nosuid,nodev,noexec,relatime shared:9 - efivarfs efivarfs rw 42 37 0:30 / /sys/fs/bpf rw,nosuid,nodev,noexec,relatime shared:10 - bpf bpf rw,mode=700 43 37 0:31 / /sys/kernel/config rw,nosuid,nodev,noexec,relatime shared:11 - configfs configfs rw 44 65 0:22 / /proc rw,nosuid,nodev,noexec,relatime shared:13 - proc proc rw 45 65 0:26 / /run rw,nosuid,nodev shared:14 - tmpfs tmpfs rw,seclabel,size=6317304k,nr_inodes=819200,mode=755,inode64 24 37 0:20 / /sys/fs/selinux rw,nosuid,noexec,relatime shared:12 - selinuxfs selinuxfs rw 23 44 0:35 / /proc/sys/fs/binfmt_misc rw,relatime shared:15 - autofs systemd-1 rw,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=517 26 34 0:19 / /dev/mqueue rw,nosuid,nodev,noexec,relatime shared:16 - mqueue mqueue rw,seclabel 27 34 0:36 / /dev/hugepages rw,nosuid,nodev,relatime shared:17 - hugetlbfs hugetlbfs rw,seclabel,pagesize=2M 30 37 0:7 / /sys/kernel/debug rw,nosuid,nodev,noexec,relatime shared:18 - debugfs debugfs rw,seclabel 31 37 0:12 / /sys/kernel/tracing rw,nosuid,nodev,noexec,relatime shared:19 - tracefs tracefs rw,seclabel 32 37 0:37 / /sys/fs/fuse/connections rw,nosuid,nodev,noexec,relatime shared:20 - fusectl fusectl rw 33 65 0:32 /home /home rw,relatime shared:21 - btrfs /dev/mapper/luks-3345d33e-339e-4ef6-b687-69727dbb1c9c rw,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2, subvolid=257,subvol=/home 47 65 259:5 / /boot rw,relatime shared:45 - ext4 /dev/nvme0n1p5 rw,seclabel 49 65 0:39 / /tmp rw,nosuid,nodev shared:48 - tmpfs tmpfs rw,seclabel,nr_inodes=1048576,inode64 51 47 259:1 / /boot/efi rw,relatime shared:50 - vfat /dev/nvme0n1p1 rw,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro 53 23 0:40 / /proc/sys/fs/binfmt_misc rw,nosuid,nodev,noexec,relatime shared:52 - binfmt_misc binfmt_misc rw 58 65 0:44 / /var/lib/nfs/rpc_pipefs rw,relatime shared:76 - rpc_pipefs sunrpc rw 837 45 0:71 / /run/user/1000 rw,nosuid,nodev,relatime shared:834 - tmpfs tmpfs rw,seclabel,size=3158652k,nr_inodes=789663,mode=700,uid=1000,gid=1000,inode64 924 837 0:72 / /run/user/1000/doc rw,nosuid,nodev,relatime shared:904 - fuse.portal portal rw,user_id=1000,group_id=1000 103 837 0:70 / /run/user/1000/kio-fuse-TKWnOb rw,nosuid,nodev,relatime shared:587 - fuse.kio-fuse kio-fuse rw,user_id=1000,group_id=1000
Attachments
For Gerrit Dashboard: QTBUG-121140 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
531695,2 | QStorageInfo/Linux: move retrieveVolumeInfo() up because it won't fail | dev | qt/qtbase | Status: MERGED | +2 | 0 |
531696,4 | QStorageInfo/Linux: fix getting information on unmounted btrfs subvols | dev | qt/qtbase | Status: MERGED | +2 | 0 |
532863,2 | QStorageInfo/Linux: fix getting information on unmounted btrfs subvols | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
533258,2 | QStorageInfo/Linux: move retrieveVolumeInfo() up because it won't fail | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |