Hi, 
in dolphin in kde 4.3.85, when I right click a folder and select 'Properties', 
then in the Properties window I see ridiculous numbers for device usage, e.g. 
'1.6 TiB free of 2.4 TiB'. I'd expect this coming from it not knowing how to 
handle ZFS properly.

the logic is inside 
http://websvn.kde.org/trunk/KDE/kdelibs/kio/kfile/kdiskfreespaceinfo.cpp?view=markup
and looks ok at the first sight, so it's probably some small detail that's 
missing.
copied here for more comfort:

131 struct statvfs statvfs_buf;
132     
133     // Prefer mountPoint if available, so that it even works with 
non-existing files.
134     const QString pathArg = info.d->mountPoint.isEmpty() ? path : 
info.d->mountPoint;
135     if (!statvfs(QFile::encodeName(pathArg).constData(), &statvfs_buf)) {
136     info.d->available = statvfs_buf.f_bavail * statvfs_buf.f_bsize;
137     info.d->size = statvfs_buf.f_blocks * statvfs_buf.f_bsize;
138     info.d->valid = true; 

any hints welcome

P.
-- 
This message posted from opensolaris.org

Reply via email to