https://bugs.kde.org/show_bug.cgi?id=513900
--- Comment #12 from Leonardo Lyio <[email protected]> --- Same root cause here, but this case does not involve a symlink: a FUSE filesystem (mergerfs). Dolphin shows the free space of the root filesystem instead of the FUSE mount's. Environment: - Dolphin 26.08.3 - Plasma 6.8.2 - KDE Frameworks / KIO 6.31.0 - Qt 6.12.0 - Arch Linux (rolling), kernel 7.2.15 Steps to reproduce: 1. Mount a FUSE filesystem that udisks does not know, e.g. mergerfs: /mnt/HD500:/mnt/HD1TB -> /mnt/media (type fuse.mergerfs) 2. Set the status bar to "Full width" so the space information is shown. 3. Open Dolphin directly in /mnt/media (no symlinks involved). Observed result: The status bar shows "41.4 GiB free out of 85.7 GiB". Those are the numbers of the root filesystem (/), not of /mnt/media. Expected result: "639 GiB free out of 1.4 TiB" (the values of the FUSE mount). The real values (from the system): $ df -hT /mnt/media media fuse.mergerfs 1,4T 759G 639G 55% /mnt/media $ df -hT / /dev/sda4 ext4 86G 41G 41G 50% / This is not a KIO problem: calling the same KIO API the status bar uses returns the correct values (small test program, same libraries): KIO::fileSystemFreeSpace(file:///mnt/media): total = 1500276318208 (1.4 TiB) available = 685861515264 (639 GiB) <- correct KIO::fileSystemFreeSpace(file:///): total = 92059582464 (85.7 GiB) available = 43935334400 (41.4 GiB) <- what Dolphin shows for /mnt/media KMountPoint::currentMountPointForPath("/mnt/media") -> /mnt/media (fuse.mergerfs) So the wrong value comes from Dolphin's MountPointObserverCache::observerForUrl() in release/26.08, which uses Solid::Device::storageAccessFromPath(). udisks/Solid does not know FUSE mounts, so it resolves to an ancestor mount (the root filesystem). I measured this directly with the same library version: Solid::Device::storageAccessFromPath("/mnt/media").as<Solid::StorageAccess>()->filePath() -> "/" (wrong: resolves to the root filesystem) Solid::Device::storageAccessFromPath("/mnt/HD1TB") -> "/mnt/HD1TB" (correct) Solid::Device::storageAccessFromPath("/mnt/HD500") -> "/mnt/HD500" (correct) This is the same problem described in comment #4 (Solid cannot handle virtual filesystems) and comment #7 (tmpfs); it also affects sshfs and any other FUSE mount. It is not limited to symlinked folders: simply opening any folder on a FUSE mount shows the wrong free space. I can see that current master already reverted d54fb877 and uses KMountPoint::currentMountPointForPath() again (MR !1180), which fixes this. Could the fix please be backported to the release/26.08 branch? The stable release currently shows the wrong free space for all FUSE/virtual filesystems. Attached: - screenshot showing Dolphin inside the FUSE mount with the wrong (root filesystem) free space in the status bar; - a text file with the full command/API output used above. -- You are receiving this mail because: You are watching all bug changes.
