mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-11 20:47:44 +00:00
Mount ext4 images with noatime flag
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user