]> git.proxmox.com Git - mirror_qemu.git/commit
dev-mtp: retry write for incomplete transfers
authorBandan Das <bsd@redhat.com>
Fri, 20 Jul 2018 21:40:18 +0000 (17:40 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Aug 2018 08:27:59 +0000 (10:27 +0200)
commitd33e3e4bf8df7a7f1bd538bc19d17c8c21f14df2
treef61e031602899dafaa77fd2f98c27b89d2a84c2a
parent406f35d7fcf5f029780d2e0cc9fa0cc37856d57c
dev-mtp: retry write for incomplete transfers

For large buffers, write may not copy the full buffer. For example,
on Linux, write imposes a limit of 0x7ffff000. Note that this does
not fix >4G transfers but ~>2G files will transfer successfully.

Signed-off-by: Bandan Das <bsd@redhat.com>
Message-id: 20180720214020.22897-4-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c