diff options
author | Koushik Dutta <koushd@gmail.com> | 2010-12-18 21:58:43 -0800 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2010-12-18 21:58:43 -0800 |
commit | 4995114d386182efd8f680aa8486a371da9f6b27 (patch) | |
tree | 5bb861adbdb14b50814ffb9414803ba31f186493 /roots.c | |
parent | 9765a037a1342b17c596f0aa70b410295bbc5f05 (diff) | |
download | android_bootable_recovery-4995114d386182efd8f680aa8486a371da9f6b27.tar.gz android_bootable_recovery-4995114d386182efd8f680aa8486a371da9f6b27.tar.bz2 android_bootable_recovery-4995114d386182efd8f680aa8486a371da9f6b27.zip |
Add BOARD_HAS_JANKY_BACKBUFFER for terrible Galaxy Tabs.
Change-Id: I72e7a8aaf65c97d4cd2b77ff92cf7232f8c9e7a7
Diffstat (limited to 'roots.c')
-rw-r--r-- | roots.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -159,6 +159,22 @@ int ensure_path_mounted(const char* path) { LOGE("failed to mount %s (%s)\n", v->mount_point, strerror(errno)); return -1; + } else { + // let's just give it a shot and see what happens... + result = mount(v->device, v->mount_point, v->fs_type, + MS_NOATIME | MS_NODEV | MS_NODIRATIME, ""); + if (result == 0) return 0; + + if (v->device2) { + LOGW("failed to mount %s (%s); trying %s\n", + v->device, strerror(errno), v->device2); + result = mount(v->device2, v->mount_point, v->fs_type, + MS_NOATIME | MS_NODEV | MS_NODIRATIME, ""); + if (result == 0) return 0; + } + + LOGE("failed to mount %s (%s)\n", v->mount_point, strerror(errno)); + return -1; } LOGE("unknown fs_type \"%s\" for %s\n", v->fs_type, v->mount_point); |