From 6bce91cd308fe033e7e6e8d0dbe3195cfb53efd2 Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Fri, 8 Mar 2024 14:37:13 +0000 Subject: [PATCH] Revert "Reduce AppFuse max read size." This reverts commit fb014fc6e81b086c63398267d996d6972b7f35ce. Reason for revert: b/325994066 Change-Id: Ia8bb76ac69713df8bd9df5501b3dde9a86a5fd99 --- AppFuseUtil.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/AppFuseUtil.cpp b/AppFuseUtil.cpp index a3beaec..711e70b 100644 --- a/AppFuseUtil.cpp +++ b/AppFuseUtil.cpp @@ -50,15 +50,14 @@ static android::status_t GetMountPath(uid_t uid, const std::string& name, std::s static android::status_t Mount(int device_fd, const std::string& path) { const auto opts = StringPrintf( - "fd=%i," - "rootmode=40000," - "default_permissions," - "allow_other," - "max_read=65536," - "user_id=0,group_id=0," - "context=\"u:object_r:app_fuse_file:s0\"," - "fscontext=u:object_r:app_fusefs:s0", - device_fd); + "fd=%i," + "rootmode=40000," + "default_permissions," + "allow_other," + "user_id=0,group_id=0," + "context=\"u:object_r:app_fuse_file:s0\"," + "fscontext=u:object_r:app_fusefs:s0", + device_fd); const int result = TEMP_FAILURE_RETRY(mount("/dev/fuse", path.c_str(), "fuse",