In Linux systems, noatime is a mount option that is used to reduce
the update of access time when mounting a file system. This means
that the file system does not record the last access time (atime)
of the file. This is particularly useful for improving performance
and reducing disk write operations, especially in read-only file
systems or environments with high performance requirements.
So it can improve performance
Change-Id: Ib209668da22986a511c6e5f68eb5e61a5bc6bfec
Signed-off-by: liwei90727 <wei90727.li@samsung.com>
LOG(INFO) << "tmg file path: [" << tmg_path << "], mount path: ["
<< mount_path << "]";
const auto mount_command =
- "-o loop,nosuid,nodev,noexec " + tmg_path + " " + mount_path;
+ "-o loop,nosuid,nodev,noexec,noatime " + tmg_path + " " + mount_path;
auto result = 0;
auto retValue =