summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-05-16 03:06:16 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-05-16 03:06:16 +0000
commitc89e15093c9a850ecf7b9a043707012ce5b3cd55 (patch)
tree0f9fd89c30320ac9b15ad56fa76d905c601a95b7
parent5311d16ace5f0d3ff7677f3de82ccea3e26fc1b9 (diff)
parent5d413f73b45f50f4ad02a28ca6bf59ed5bf1f8c4 (diff)
downloadplatform_system_gsid-c89e15093c9a850ecf7b9a043707012ce5b3cd55.tar.gz
platform_system_gsid-c89e15093c9a850ecf7b9a043707012ce5b3cd55.tar.bz2
platform_system_gsid-c89e15093c9a850ecf7b9a043707012ce5b3cd55.zip
Snap for 5571215 from 5d413f73b45f50f4ad02a28ca6bf59ed5bf1f8c4 to qt-release
Change-Id: I4447d56227ac4de686159bdf1fd3b3f28130b3b4
-rw-r--r--gsi_service.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gsi_service.cpp b/gsi_service.cpp
index 9e0b7a2..90d71ba 100644
--- a/gsi_service.cpp
+++ b/gsi_service.cpp
@@ -579,10 +579,10 @@ int GsiService::PerformSanityChecks() {
// This is the same as android::vold::GetFreebytes() but we also
// need the total file system size so we open code it here.
- uint64_t free_space = sb.f_bavail * sb.f_frsize;
+ uint64_t free_space = 1ULL * sb.f_bavail * sb.f_frsize;
uint64_t fs_size = sb.f_blocks * sb.f_frsize;
if (free_space <= (gsi_size_ + userdata_size_)) {
- LOG(ERROR) << "not enough free space (only" << free_space << " bytes available)";
+ LOG(ERROR) << "not enough free space (only " << free_space << " bytes available)";
return INSTALL_ERROR_NO_SPACE;
}
// We are asking for 40% of the /data to be empty.