Take cluster size into account when calculating zip extracted size.
commit743308e8828d36ce53fbf25a6fd815dad74b7d59
authorDominik Riebeling <Dominik.Riebeling@gmail.com>
Tue, 26 Jul 2011 20:54:44 +0000 (26 20:54 +0000)
committerDominik Riebeling <Dominik.Riebeling@gmail.com>
Tue, 26 Jul 2011 20:54:44 +0000 (26 20:54 +0000)
tree4b3431410c2bdafc3e66541dee9e7733bc59e7b9
parent3bb0fed345d72c7bf944ab490a249463ed150586
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://svn.rockbox.org/rockbox/trunk@30214 a1c6a512-1295-4272-9138-f99709370657
rbutil/rbutilqt/base/utils.cpp
rbutil/rbutilqt/base/utils.h
rbutil/rbutilqt/base/zipinstaller.cpp
rbutil/rbutilqt/base/ziputil.cpp
rbutil/rbutilqt/base/ziputil.h