vold: Force formatting of cards to FAT32
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
parent
3860b6e67c
commit
9f9c951ad3
1 changed files with 7 additions and 6 deletions
|
|
@ -39,12 +39,13 @@ int format_partition(blkdev_t *part, char *type)
|
||||||
if (!strcmp(type, FORMAT_TYPE_FAT32)) {
|
if (!strcmp(type, FORMAT_TYPE_FAT32)) {
|
||||||
char *args[6];
|
char *args[6];
|
||||||
args[0] = MKDOSFS_PATH;
|
args[0] = MKDOSFS_PATH;
|
||||||
args[1] = "-c 32";
|
args[1] = "-F 32";
|
||||||
args[2] = "-n 2";
|
args[2] = "-c 32";
|
||||||
args[3] = "-O android";
|
args[3] = "-n 2";
|
||||||
args[4] = devpath;
|
args[4] = "-O android";
|
||||||
args[5] = NULL;
|
args[5] = devpath;
|
||||||
rc = logwrap(5, args, 1);
|
args[6] = NULL;
|
||||||
|
rc = logwrap(6, args, 1);
|
||||||
} else {
|
} else {
|
||||||
char *args[7];
|
char *args[7];
|
||||||
args[0] = MKE2FS_PATH;
|
args[0] = MKE2FS_PATH;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue