aboutsummaryrefslogtreecommitdiffstats
path: root/mmcutils
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2011-03-20 15:44:48 -0700
committerKoushik Dutta <koushd@gmail.com>2011-03-20 15:44:48 -0700
commitfaa477ec99c33917dea27c986d6a2e816b17537f (patch)
tree350c0ffd95b708655a73dcbaf43174bd85ed4f34 /mmcutils
parent6d19f22c8565bb3ee93dc035b1d28527ea4beda1 (diff)
downloadbootable_recovery-faa477ec99c33917dea27c986d6a2e816b17537f.zip
bootable_recovery-faa477ec99c33917dea27c986d6a2e816b17537f.tar.gz
bootable_recovery-faa477ec99c33917dea27c986d6a2e816b17537f.tar.bz2
fix potential break that toastcfh found?
Change-Id: I590bf171a78380daaa9ea65b4ece726b64c7cd23
Diffstat (limited to 'mmcutils')
-rw-r--r--mmcutils/mmcutils.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mmcutils/mmcutils.c b/mmcutils/mmcutils.c
index 322f69b..76b8ff8 100644
--- a/mmcutils/mmcutils.c
+++ b/mmcutils/mmcutils.c
@@ -340,13 +340,18 @@ run_exec_process ( char **argv) {
int
format_ext3_device (const char *device) {
- // Run mke2fs
+#ifdef BOARD_HAS_LARGE_FILESYSTEM
char *const mke2fs[] = {MKE2FS_BIN, "-j", "-q", device, NULL};
+ char *const tune2fs[] = {TUNE2FS_BIN, "-C", "1", device, NULL};
+#else
+ char *const mke2fs[] = {MKE2FS_BIN, "-j", device, NULL};
+ char *const tune2fs[] = {TUNE2FS_BIN, "-j", "-C", "1", device, NULL};
+#endif
+ // Run mke2fs
if(run_exec_process(mke2fs))
return -1;
// Run tune2fs
- char *const tune2fs[] = {TUNE2FS_BIN, "-C", "1", device, NULL};
if(run_exec_process(tune2fs))
return -1;