fvogt added a comment.
With a few modification the patch is correct and necessary though. statfs (not statvfs!) has in the documentation: `Fields that are undefined for a particular filesystem are set to 0.`. Currently KIO just returns garbage in that case. The KMountPoint calls above are not necessary with statvfs/statfs and in the gvfs case even hurt. That it works now due to KMountPoint changes is just a side effect and a workaround, not a proper fix. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D15146 To: broulik, dfaure, ngraham, fvogt Cc: kde-frameworks-devel, michaelh, ngraham, bruns