summaryrefslogtreecommitdiffstats
path: root/sdcard
diff options
context:
space:
mode:
authorJohan Redestig <johan.redestig@sonymobile.com>2015-01-24 19:00:39 +0100
committerJohan Redestig <johan.redestig@sonymobile.com>2015-01-25 12:30:37 +0100
commit55cc5e52175c0ab1aec2cdb878096d9ea2307a9f (patch)
tree15dad4ecc30c2e6d25a6e6a720b33b28b32f5396 /sdcard
parentae79cb5a819bd5bbd86a3496141d45c22db8c86b (diff)
downloadsystem_core-55cc5e52175c0ab1aec2cdb878096d9ea2307a9f.zip
system_core-55cc5e52175c0ab1aec2cdb878096d9ea2307a9f.tar.gz
system_core-55cc5e52175c0ab1aec2cdb878096d9ea2307a9f.tar.bz2
sdcard: Turn on noatime for fuse mounted sdcard
This provides symmetry with /data and /cache that are typically mounted with noatime. Change-Id: I6fe1bead368b52632424b03b50d4081852824cdb
Diffstat (limited to 'sdcard')
-rw-r--r--sdcard/sdcard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index 4d50bf0..39ce0eb 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -1869,7 +1869,8 @@ static int run(const char* source_path, const char* dest_path, uid_t uid,
"fd=%i,rootmode=40000,default_permissions,allow_other,user_id=%d,group_id=%d",
fd, uid, gid);
- res = mount("/dev/fuse", dest_path, "fuse", MS_NOSUID | MS_NODEV | MS_NOEXEC, opts);
+ res = mount("/dev/fuse", dest_path, "fuse", MS_NOSUID | MS_NODEV | MS_NOEXEC |
+ MS_NOATIME, opts);
if (res < 0) {
ERROR("cannot mount fuse filesystem: %s\n", strerror(errno));
goto error;