]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/blkio: add more comments on the fd passing handling
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 3 Aug 2023 08:28:25 +0000 (10:28 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 3 Aug 2023 15:28:43 +0000 (11:28 -0400)
commit9b06d0d076271d76e5384d767ef94a676f0a9efd
treebb288f9a924193fee5802caa2bc882c1226eaed4
parent0b054b4c82ebad6e90111e3ffa3514f841dbb1d0
block/blkio: add more comments on the fd passing handling

As Hanna pointed out, it is not clear in the code why qemu_open()
can fail, and why blkio_set_int("fd") is not enough to discover
the `fd` property support.

Let's fix them by adding more details in the code comments.

Suggested-by: Hanna Czenczek <hreitz@redhat.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20230803082825.25293-3-sgarzare@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/blkio.c