]> git.proxmox.com Git - mirror_qemu.git/commit
usb-mtp: Support delete of mtp objects
authorBandan Das <bsd@redhat.com>
Fri, 23 Feb 2018 16:48:27 +0000 (11:48 -0500)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 26 Feb 2018 11:18:36 +0000 (12:18 +0100)
commitec6206a68f700bd22aec3e3b98877d45b22d5143
treee0d1cb622a43f774d276e8097c6d0bd0db4357ad
parent5d13ebeacc22eb854e5d70b18fda1af22a46dc27
usb-mtp: Support delete of mtp objects

Write of existing objects by the initiator is acheived by
making a temporary buffer with the new changes, deleting the
old file and then writing a new file with the same name.

Also, add a "readonly" property which needs to be set to false
for deletion to work.

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