diff options
| author | Stefan Hajnoczi | 2022-08-11 18:49:05 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2022-09-30 18:43:44 +0200 |
| commit | 9a891a91a19a9b999fec00ce6e27bc71c93273ec (patch) | |
| tree | 19b222f799402b0905b9632d987828fb6264818f /include/block | |
| parent | block: make serializing requests functions 'void' (diff) | |
| download | qemu-9a891a91a19a9b999fec00ce6e27bc71c93273ec.tar.gz qemu-9a891a91a19a9b999fec00ce6e27bc71c93273ec.tar.xz qemu-9a891a91a19a9b999fec00ce6e27bc71c93273ec.zip | |
gluster: stop using .bdrv_needs_filename
The gluster protocol driver used to parse URIs (filenames) but was
extended with a richer JSON syntax in commit 6c7189bb29de
("block/gluster: add support for multiple gluster servers"). The gluster
drivers that have JSON parsing set .bdrv_needs_filename to false.
The gluster+unix and gluster+rdma drivers still to require a filename
even though the JSON parser is equipped to parse the same
volume/path/sockaddr details as the URI parser. Let's allow JSON parsing
for these drivers too.
Note that the gluster+rdma driver actually uses TCP because RDMA support
is not available, so the JSON server.type field must be "inet".
Drop .bdrv_needs_filename since both the filename and the JSON parsers
can handle gluster+unix and gluster+rdma. This change is in preparation
for eventually removing .bdrv_needs_filename across the entire codebase.
Cc: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220811164905.430834-1-stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions
