aboutsummaryrefslogtreecommitdiffstats
path: root/roots.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-03-31 23:56:01 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-31 23:56:02 +0000
commit6896f9d47db1f959a907d2e67e55860af23e65f8 (patch)
treee312722849ae13168238d7edae1be7481ca4362e /roots.cpp
parentccc82eca9a9b63f43c69472c0841954f19f7a7f0 (diff)
parente853e96b40a77a1c89779d9bddd612622f04a62d (diff)
downloadbootable_recovery-6896f9d47db1f959a907d2e67e55860af23e65f8.zip
bootable_recovery-6896f9d47db1f959a907d2e67e55860af23e65f8.tar.gz
bootable_recovery-6896f9d47db1f959a907d2e67e55860af23e65f8.tar.bz2
Merge "always use volume mount option when mounting a partition"
Diffstat (limited to 'roots.cpp')
-rw-r--r--roots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/roots.cpp b/roots.cpp
index ee14016..f863cb2 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -113,7 +113,7 @@ int ensure_path_mounted(const char* path) {
} else if (strcmp(v->fs_type, "ext4") == 0 ||
strcmp(v->fs_type, "vfat") == 0) {
result = mount(v->blk_device, v->mount_point, v->fs_type,
- MS_NOATIME | MS_NODEV | MS_NODIRATIME, "");
+ v->flags, v->fs_options);
if (result == 0) return 0;
LOGE("failed to mount %s (%s)\n", v->mount_point, strerror(errno));