From f45b0686d206cfcff4f402d8f05c2472f3f350de Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 29 Oct 2018 21:44:09 -0400 Subject: [PATCH] Mount ext4 images with noatime flag --- native/jni/img.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/img.c b/native/jni/img.c index 96853b23c..ab3d90b51 100644 --- a/native/jni/img.c +++ b/native/jni/img.c @@ -184,7 +184,7 @@ char *mount_image(const char *img, const char *target) { exec_command_sync("/system/bin/e2fsck", "-yf", img, NULL); char *device = loopsetup(img); if (device) - xmount(device, target, "ext4", 0, NULL); + xmount(device, target, "ext4", MS_NOATIME, NULL); return device; }