qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 9c7275: usb-mtp: Add one more argument when b


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 9c7275: usb-mtp: Add one more argument when building resul...
Date: Tue, 27 Feb 2018 11:25:19 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 9c72758439c44f48f095d9d85e5e20d8050ab93a
      
https://github.com/qemu/qemu/commit/9c72758439c44f48f095d9d85e5e20d8050ab93a
  Author: Bandan Das <address@hidden>
  Date:   2018-02-26 (Mon, 26 Feb 2018)

  Changed paths:
    M hw/usb/dev-mtp.c

  Log Message:
  -----------
  usb-mtp: Add one more argument when building results

The response to a SendObjectInfo consists of the storageid,
parent obejct handle and the handle reserved for the new
incoming object

Signed-off-by: Bandan Das <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 5d13ebeacc22eb854e5d70b18fda1af22a46dc27
      
https://github.com/qemu/qemu/commit/5d13ebeacc22eb854e5d70b18fda1af22a46dc27
  Author: Bandan Das <address@hidden>
  Date:   2018-02-26 (Mon, 26 Feb 2018)

  Changed paths:
    M hw/usb/dev-mtp.c

  Log Message:
  -----------
  usb-mtp: print parent path in IN_IGNORED trace fn

Fix a possible null dereference when deleting a folder and
its contents. An ignored event might be received for its contents
after the parent folder is deleted which will return a null object.

Signed-off-by: Bandan Das <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: ec6206a68f700bd22aec3e3b98877d45b22d5143
      
https://github.com/qemu/qemu/commit/ec6206a68f700bd22aec3e3b98877d45b22d5143
  Author: Bandan Das <address@hidden>
  Date:   2018-02-26 (Mon, 26 Feb 2018)

  Changed paths:
    M hw/usb/dev-mtp.c

  Log Message:
  -----------
  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 <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 88d5f381ecb2d2828fd77676572ff9a99da699fb
      
https://github.com/qemu/qemu/commit/88d5f381ecb2d2828fd77676572ff9a99da699fb
  Author: Bandan Das <address@hidden>
  Date:   2018-02-26 (Mon, 26 Feb 2018)

  Changed paths:
    M hw/usb/dev-mtp.c

  Log Message:
  -----------
  usb-mtp: Introduce write support for MTP objects

Allow write operations on behalf of the initiator. The
precursor to write is the sending of the write metadata
that consists of the ObjectInfo dataset. This patch introduces
a flag that is set when the responder is ready to receive
write data based on a previous SendObjectInfo operation by
the initiator (The SendObjectInfo implementation is in a
later patch)

Signed-off-by: Bandan Das <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 53735bef108c5ccddf0f8a65cde4da53a48dbd47
      
https://github.com/qemu/qemu/commit/53735bef108c5ccddf0f8a65cde4da53a48dbd47
  Author: Bandan Das <address@hidden>
  Date:   2018-02-26 (Mon, 26 Feb 2018)

  Changed paths:
    M hw/usb/dev-mtp.c

  Log Message:
  -----------
  usb-mtp: Advertise SendObjectInfo for write support

This patch implements a dummy ObjectInfo structure so that
it's easy to typecast the incoming data. If the metadata is
valid, write_pending is set. Also, the incoming filename
is utf-16, so, instead of depending on external libraries, just
implement a simple function to get the filename

Signed-off-by: Bandan Das <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 6697439794f72b3501ee16bb95d16854f9981421
      
https://github.com/qemu/qemu/commit/6697439794f72b3501ee16bb95d16854f9981421
  Author: Peter Maydell <address@hidden>
  Date:   2018-02-27 (Tue, 27 Feb 2018)

  Changed paths:
    M hw/usb/dev-mtp.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/kraxel/tags/usb-20180227-pull-request' 
into staging

usb: add mtp write support.

# gpg: Signature made Tue 27 Feb 2018 08:39:01 GMT
# gpg:                using RSA key 4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>"
# gpg:                 aka "Gerd Hoffmann <address@hidden>"
# gpg:                 aka "Gerd Hoffmann (private) <address@hidden>"
# Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138

* remotes/kraxel/tags/usb-20180227-pull-request:
  usb-mtp: Advertise SendObjectInfo for write support
  usb-mtp: Introduce write support for MTP objects
  usb-mtp: Support delete of mtp objects
  usb-mtp: print parent path in IN_IGNORED trace fn
  usb-mtp: Add one more argument when building results

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/3ec7b5d819da...6697439794f7

reply via email to

[Prev in Thread] Current Thread [Next in Thread]