Merge "always use volume mount option when mounting a partition"
This commit is contained in:
@@ -113,7 +113,7 @@ int ensure_path_mounted(const char* path) {
|
|||||||
} else if (strcmp(v->fs_type, "ext4") == 0 ||
|
} else if (strcmp(v->fs_type, "ext4") == 0 ||
|
||||||
strcmp(v->fs_type, "vfat") == 0) {
|
strcmp(v->fs_type, "vfat") == 0) {
|
||||||
result = mount(v->blk_device, v->mount_point, v->fs_type,
|
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;
|
if (result == 0) return 0;
|
||||||
|
|
||||||
LOGE("failed to mount %s (%s)\n", v->mount_point, strerror(errno));
|
LOGE("failed to mount %s (%s)\n", v->mount_point, strerror(errno));
|
||||||
|
|||||||
Reference in New Issue
Block a user