aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2012-03-08 14:20:20 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2012-03-08 14:20:20 -0800
commitd4f5a3ae87a7246613188940c1667bf2880da402 (patch)
tree73f7b4c7bdece6aa5f6f552adb6b4b244f24edef
parent025a347156acb6c22444f7d4d06c0f44da573c5e (diff)
downloadexternal_qemu-d4f5a3ae87a7246613188940c1667bf2880da402.zip
external_qemu-d4f5a3ae87a7246613188940c1667bf2880da402.tar.gz
external_qemu-d4f5a3ae87a7246613188940c1667bf2880da402.tar.bz2
Increase default partition size, and fix data partition size calculation.
There is a (reasonable) demand from android development comunity to increase default data partition size. It seems that 66MB doesn't match anymore user needs. So, with this CL default data partition size will be increased to 12MB. This CL also fixes a bug where data partition size set by the AVD manager has been wrongly treated as an MB value, while it was a byte value. Change-Id: I27c456a71299aff42bd4ca573d3660292a7d1d44
-rw-r--r--android/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/main.c b/android/main.c
index 2723834..d3e7e8f 100644
--- a/android/main.c
+++ b/android/main.c
@@ -235,7 +235,7 @@ int main(int argc, char **argv)
AConfig* skinConfig;
char* skinPath;
int inAndroidBuild;
- uint64_t defaultPartitionSize = convertMBToBytes(66);
+ uint64_t defaultPartitionSize = convertMBToBytes(128);
AndroidOptions opts[1];
/* net.shared_net_ip boot property value. */
@@ -729,7 +729,7 @@ int main(int argc, char **argv)
uint64_t defaultBytes =
hw->disk_dataPartition_size == 0 ?
defaultPartitionSize :
- convertMBToBytes(hw->disk_dataPartition_size);
+ hw->disk_dataPartition_size;
uint64_t dataBytes;
const char* dataPath = hw->disk_dataPartition_initPath;