Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55cc5e52 authored by Johan Redestig's avatar Johan Redestig
Browse files

sdcard: Turn on noatime for fuse mounted sdcard

This provides symmetry with /data and /cache that are
typically mounted with noatime.

Change-Id: I6fe1bead368b52632424b03b50d4081852824cdb
parent ae79cb5a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;