summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-07-16 10:28:42 -0700
committerSan Mehat <san@google.com>2009-07-16 10:28:42 -0700
commit6702a4436d04b4fbe1be2f11ce5c1cd9ce64574c (patch)
tree3e4b69a716c855a9af66b94b7143decdd82ae2cf
parent11877c86e96c485b9632ea758b225bcacf6e7670 (diff)
downloadandroid_external_fsck_msdos-6702a4436d04b4fbe1be2f11ce5c1cd9ce64574c.tar.gz
android_external_fsck_msdos-6702a4436d04b4fbe1be2f11ce5c1cd9ce64574c.tar.bz2
android_external_fsck_msdos-6702a4436d04b4fbe1be2f11ce5c1cd9ce64574c.zip
fsck_vfat: Lower fat size compare limit from 8192k -> 4096k
Signed-off-by: San Mehat <san@google.com>
-rw-r--r--check.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/check.c b/check.c
index e4a8dfa..fab2d91 100644
--- a/check.c
+++ b/check.c
@@ -49,9 +49,11 @@ static const char rcsid[] =
#include "fsutil.h"
/*
- * If the FAT > this size then skip comparing
+ * If the FAT > this size then skip comparing, lest we risk
+ * OOMing the framework. in the future we need to just re-write
+ * this whole thing and optimize for less memory
*/
-#define FAT_COMPARE_MAX_KB 8192
+#define FAT_COMPARE_MAX_KB 4096
int
checkfilesys(const char *fname)