Commit f45b0686 authored by topjohnwu's avatar topjohnwu

Mount ext4 images with noatime flag

parent 1f3f881f
...@@ -184,7 +184,7 @@ char *mount_image(const char *img, const char *target) { ...@@ -184,7 +184,7 @@ char *mount_image(const char *img, const char *target) {
exec_command_sync("/system/bin/e2fsck", "-yf", img, NULL); exec_command_sync("/system/bin/e2fsck", "-yf", img, NULL);
char *device = loopsetup(img); char *device = loopsetup(img);
if (device) if (device)
xmount(device, target, "ext4", 0, NULL); xmount(device, target, "ext4", MS_NOATIME, NULL);
return device; return device;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment