more fixes for sammy

Change-Id: Ie11c673a204a328a82f767a2610c5f1d9a51233c
This commit is contained in:
Koushik Dutta 2011-02-27 17:28:30 -08:00
parent 47d86a35bc
commit ab1f8b836e
2 changed files with 3 additions and 1 deletions

View File

@ -977,7 +977,8 @@ void write_fstab_root(char *path, FILE *file)
fprintf(file, "%s ", device);
fprintf(file, "%s ", path);
fprintf(file, "%s rw\n", vol->fs_type2 != NULL ? "auto" : vol->fs_type);
// special case rfs cause auto will mount it as vfat on samsung.
fprintf(file, "%s rw\n", vol->fs_type2 != NULL && strcmp(vol->fs_type, "rfs") != 0 ? "auto" : vol->fs_type);
}
void create_fstab()

View File

@ -175,6 +175,7 @@ int ensure_path_mounted(const char* path) {
return mtd_mount_partition(partition, v->mount_point, v->fs_type, 0);
} else if (strcmp(v->fs_type, "ext4") == 0 ||
strcmp(v->fs_type, "ext3") == 0 ||
strcmp(v->fs_type, "rfs") == 0 ||
strcmp(v->fs_type, "vfat") == 0) {
// try fs type 2 first
if ((result = try_mount(v->device, v->mount_point, v->fs_type, v->fs_options)) == 0)