Commit d771a072 authored by Marko Saukko's avatar Marko Saukko

Exclude other filesystems on counts.

without -x if you have mounted e.g. sdcard or something to a directory
it counts that into the space which is not right.

[disk] Do not follow to other filesystems. Contributes to JB#40595
Signed-off-by: default avatarMarko Saukko <>
parent 8497568b
...@@ -68,7 +68,7 @@ quint64 DiskUsageWorker::calculateSize(QString directory, QString *expandedPath, ...@@ -68,7 +68,7 @@ quint64 DiskUsageWorker::calculateSize(QString directory, QString *expandedPath,
} }
QProcess du; QProcess du;
du.start("du", QStringList() << "-sb" << directory, QIODevice::ReadOnly); du.start("du", QStringList() << "-sbx" << directory, QIODevice::ReadOnly);
du.waitForFinished(); du.waitForFinished();
if (du.exitStatus() != QProcess::NormalExit) { if (du.exitStatus() != QProcess::NormalExit) {
qWarning() << "Could not determine size of:" << directory; qWarning() << "Could not determine size of:" << directory;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment