Mount ext4 images with noatime flag

This commit is contained in:
topjohnwu 2018-10-29 21:44:09 -04:00
parent 1f3f881f81
commit f45b0686d2

View File

@ -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;
}