Skip to content

Commit

Permalink
Exclude other filesystems on counts.
Browse files Browse the repository at this point in the history
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: Marko Saukko <marko.saukko@jolla.com>
  • Loading branch information
saukko committed Mar 29, 2018
1 parent 8497568 commit d771a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diskusage_impl.cpp
Expand Up @@ -68,7 +68,7 @@ quint64 DiskUsageWorker::calculateSize(QString directory, QString *expandedPath,
}

QProcess du;
du.start("du", QStringList() << "-sb" << directory, QIODevice::ReadOnly);
du.start("du", QStringList() << "-sbx" << directory, QIODevice::ReadOnly);
du.waitForFinished();
if (du.exitStatus() != QProcess::NormalExit) {
qWarning() << "Could not determine size of:" << directory;
Expand Down

0 comments on commit d771a07

Please sign in to comment.