From faa477ec99c33917dea27c986d6a2e816b17537f Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 20 Mar 2011 15:44:48 -0700 Subject: [PATCH] fix potential break that toastcfh found? Change-Id: I590bf171a78380daaa9ea65b4ece726b64c7cd23 --- mmcutils/mmcutils.c | 9 +++++++-- 1 file 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;