path: root/rbutil/rbutilqt/base/utils.h
diff options
authorDominik Riebeling <>2011-07-26 20:54:44 +0000
committerDominik Riebeling <>2011-07-26 20:54:44 +0000
commit743308e8828d36ce53fbf25a6fd815dad74b7d59 (patch)
tree4b3431410c2bdafc3e66541dee9e7733bc59e7b9 /rbutil/rbutilqt/base/utils.h
parent3bb0fed345d72c7bf944ab490a249463ed150586 (diff)
Take cluster size into account when calculating zip extracted size.
Allow passing an (optional) cluster size to round up all file sizes when calculating the total size of an extracted zip archive. This allows to check if the space on disk is actually sufficient without relying on an arbitrary headroom value which might be wrong. Addresses FS#12195. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/utils.h')
1 files changed, 3 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/utils.h b/rbutil/rbutilqt/base/utils.h
index 659bbc4ed4..b4477699fd 100644
--- a/rbutil/rbutilqt/base/utils.h
+++ b/rbutil/rbutilqt/base/utils.h
@@ -33,13 +33,15 @@ class Utils : public QObject
enum Size {
- FilesystemFree
+ FilesystemFree,
+ FilesystemClusterSize,
static bool recursiveRmdir(const QString &dirName);
static QString resolvePathCase(QString path);
static qulonglong filesystemFree(QString path);
static qulonglong filesystemTotal(QString path);
+ static qulonglong filesystemClusterSize(QString path);
static qulonglong filesystemSize(QString path, enum Size type);
static QString findExecutable(QString name);
static QString checkEnvironment(bool permission);