summaryrefslogtreecommitdiffstats
path: root/hw/sd/sd.c
diff options
context:
space:
mode:
authorBandan Das2019-01-29 14:19:07 +0100
committerGerd Hoffmann2019-01-30 06:47:52 +0100
commitc1ef0f2519c706f738d76b9b68b6627c889bab14 (patch)
tree8fe4d8fa416eaf0499a696d833c04d7fa0bfa8a1 /hw/sd/sd.c
parentusb-mtp: Reallocate buffer in multiples of MTP_WRITE_BUF_SZ (diff)
downloadqemu-c1ef0f2519c706f738d76b9b68b6627c889bab14.tar.gz
qemu-c1ef0f2519c706f738d76b9b68b6627c889bab14.tar.xz
qemu-c1ef0f2519c706f738d76b9b68b6627c889bab14.zip
usb-mtp: breakup MTP write into smaller chunks
For every MTP_WRITE_BUF_SZ copied, this patch writes it to file before getting the next block of data. The file is kept opened for the duration of the operation but the sanity checks on the write operation are performed only once when the write operation starts. Additionally, we also update the file size in the object metadata once the file has completely been written. Suggested-by: Gerd Hoffman <kraxel@redhat.com> Signed-off-by: Bandan Das <bsd@redhat.com> Message-id: 20190129131908.27924-3-bsd@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/sd/sd.c')
0 files changed, 0 insertions, 0 deletions