rump_fs: disable access time updates

Mount all file system with 'noatime' option because it is hardly useful
if there is no proper base period.

Issue #2558.
This commit is contained in:
Josef Söntgen 2014-09-15 15:09:07 +02:00 committed by Christian Helmuth
parent adb00d329f
commit 616352b840
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ void File_system::init()
struct fs_args args;
int opts = check_read_only(fs_type) ? RUMP_MNT_RDONLY : 0;
/* disable access time updates */
opts |= RUMP_MNT_NOATIME;
args.fspec = (char *)GENODE_DEVICE;
if (rump_sys_mount(fs_type.string(), "/", opts, &args, sizeof(args)) == -1) {
Genode::error("Mounting '", fs_type, "' file system failed (errno ", errno, " )");