diff options
author | Ravisankar Reddy <ravisankar.reddy@sony.com> | 2017-07-03 11:25:33 +0900 |
---|---|---|
committer | SzuWei Lin <szuweilin@google.com> | 2017-07-31 18:12:30 +0800 |
commit | 4cc6baf616bee2c8ce6d8935c16641a66112fa95 (patch) | |
tree | 6fd1af46ed980cfe94f66e42ba0d1b7b9307ac8c | |
parent | 95a92f9203ca68ab446a7cffd23450f04930fe38 (diff) | |
download | vold-4cc6baf616bee2c8ce6d8935c16641a66112fa95.tar.gz |
Add noatime to vfat and exfat
testNoAtime is new cts testcase, which verifies all writable
block filesystems are mounted "noatime" toavoid unnecessary
flash churn. So add noatime for vfat.
Bug: 64137815
Test: run cts -m m CtsOsTestCases -t android.os.cts.EnvironmentTest#testNoAtime
Change-Id: I4f42b54ed0d66e09964351da26d0d3bf38d573d6
-rw-r--r-- | fs/Vfat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/Vfat.cpp b/fs/Vfat.cpp index 1803c4b8..dc1fe331 100644 --- a/fs/Vfat.cpp +++ b/fs/Vfat.cpp @@ -133,7 +133,7 @@ status_t Mount(const std::string& source, const std::string& target, bool ro, const char* c_source = source.c_str(); const char* c_target = target.c_str(); - flags = MS_NODEV | MS_NOSUID | MS_DIRSYNC; + flags = MS_NODEV | MS_NOSUID | MS_DIRSYNC | MS_NOATIME; flags |= (executable ? 0 : MS_NOEXEC); flags |= (ro ? MS_RDONLY : 0); |