[PATCH 0/3] block: remove separate bdrv_file_open callback

Paolo Bonzini posted 3 patches 1 year, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20221212131700.250209-1-pbonzini@redhat.com
Maintainers: Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Stefan Weil <sw@weilnetz.de>, Ronnie Sahlberg <ronniesahlberg@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, Peter Lieven <pl@kamp.de>, Eric Blake <eblake@redhat.com>, Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>, Fam Zheng <fam@euphon.net>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Ilya Dryomov <idryomov@gmail.com>, "Richard W.M. Jones" <rjones@redhat.com>
There is a newer version of this series
block.c                          | 17 +++++++----------
block/blkdebug.c                 |  2 +-
block/blkio.c                    |  2 +-
block/blkverify.c                |  2 +-
block/curl.c                     |  8 ++++----
block/file-posix.c               |  8 ++++----
block/file-win32.c               |  4 ++--
block/gluster.c                  |  8 ++++----
block/iscsi.c                    |  4 ++--
block/nbd.c                      |  6 +++---
block/nfs.c                      |  2 +-
block/null.c                     |  4 ++--
block/nvme.c                     |  2 +-
block/rbd.c                      |  3 ++-
block/ssh.c                      |  2 +-
block/vvfat.c                    |  2 +-
include/block/block_int-common.h |  3 ---
17 files changed, 37 insertions(+), 42 deletions(-)
[PATCH 0/3] block: remove separate bdrv_file_open callback
Posted by Paolo Bonzini 1 year, 4 months ago
The presence of the bdrv_file_open callback is used in some parts of the
code to distinguish protocol and format drivers.  Use the existing
.protocol_name field instead, and unify .bdrv_open with .bdrv_file_open.

Paolo

Paolo Bonzini (3):
  block: apply assertion more widely
  block: do not check bdrv_file_open
  block: remove separate bdrv_file_open callback

 block.c                          | 17 +++++++----------
 block/blkdebug.c                 |  2 +-
 block/blkio.c                    |  2 +-
 block/blkverify.c                |  2 +-
 block/curl.c                     |  8 ++++----
 block/file-posix.c               |  8 ++++----
 block/file-win32.c               |  4 ++--
 block/gluster.c                  |  8 ++++----
 block/iscsi.c                    |  4 ++--
 block/nbd.c                      |  6 +++---
 block/nfs.c                      |  2 +-
 block/null.c                     |  4 ++--
 block/nvme.c                     |  2 +-
 block/rbd.c                      |  3 ++-
 block/ssh.c                      |  2 +-
 block/vvfat.c                    |  2 +-
 include/block/block_int-common.h |  3 ---
 17 files changed, 37 insertions(+), 42 deletions(-)

-- 
2.38.1