fix potential break that toastcfh found?

Change-Id: I590bf171a78380daaa9ea65b4ece726b64c7cd23
This commit is contained in:
Koushik Dutta 2011-03-20 15:44:48 -07:00
parent 6d19f22c85
commit faa477ec99

View File

@ -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;