From b0aacc88f3e764a84707b0c4f8e334777988d1e0 Mon Sep 17 00:00:00 2001 From: Andrew Leech <> Date: Wed, 1 Nov 2023 15:14:37 +1100 Subject: [PATCH] mpremote/mount: Add ioctl to specify large read buffer size. Speeds up importing files from mounted filesystem. Signed-off-by: Andrew Leech --- tools/mpremote/mpremote/transport_serial.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/mpremote/mpremote/transport_serial.py b/tools/mpremote/mpremote/transport_serial.py index e04f5b4ac9ab8..9a49685962178 100644 --- a/tools/mpremote/mpremote/transport_serial.py +++ b/tools/mpremote/mpremote/transport_serial.py @@ -753,6 +753,8 @@ def ioctl(self, request, arg): machine.mem32[arg] = self.seek(machine.mem32[arg], machine.mem32[arg + 4]) elif request == 4: # CLOSE self.close() + elif request == 11: # BUFSIZE + return 255 return 0 def flush(self):