Version: (using KDE KDE 3.3.0) Installed from: RedHat RPMs Compiler: gcc 3.4.2 OS: Linux when calling KDiskFreeSp::findUsageInfo(), i supply the path which i want to test. then KDiskFreeSp::readDF() runs DF -k and parses the resulting data. The point is that it runs 'df -k' instead of running 'df -k path'. this causes 2 things: 1) calling this function for multiple mount points is very inefficient 2) if you have an NFS share mounted, and the connection is bad, or the remote computer is not connected anymore, DF takes a LONG LONG LONG time to finish. when that happens, i don't get the stat info i requested even if i didn't want to know anything about that remote share. fix: in KDiskFreeSp::readDF(), change ------- this --------- (*dfProc) << QString::fromLocal8Bit(DF_COMMAND) << QString::fromLocal8Bit(DF_ARGS); ------- to this ------ (*dfProc) << QString::fromLocal8Bit(DF_COMMAND) << QString::fromLocal8Bit(DF_ARGS) << mountPoint; thanks!
Code now uses statvfs().