aboutsummaryrefslogtreecommitdiff
path: root/block/blkdebug.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-11-24 16:22:22 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2024-06-28 14:44:51 +0200
commit44b424dc4a3e2d47fa20676f00645fb950d8d76a (patch)
tree879cb468d717e92fdfd35c9981af161cfa61201a /block/blkdebug.c
parent41770f6e6ff41ca98e130c79b566f05ec68912fe (diff)
downloadqemu-44b424dc4a3e2d47fa20676f00645fb950d8d76a.zip
qemu-44b424dc4a3e2d47fa20676f00645fb950d8d76a.tar.gz
qemu-44b424dc4a3e2d47fa20676f00645fb950d8d76a.tar.bz2
block: remove separate bdrv_file_open callback
bdrv_file_open and bdrv_open are completely equivalent, they are never checked except to see which one to invoke. So merge them into a single one. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
-rw-r--r--block/blkdebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c
index 9da8c9e..c95c818 100644
--- a/block/blkdebug.c
+++ b/block/blkdebug.c
@@ -1073,7 +1073,7 @@ static BlockDriver bdrv_blkdebug = {
.is_filter = true,
.bdrv_parse_filename = blkdebug_parse_filename,
- .bdrv_file_open = blkdebug_open,
+ .bdrv_open = blkdebug_open,
.bdrv_close = blkdebug_close,
.bdrv_reopen_prepare = blkdebug_reopen_prepare,
.bdrv_child_perm = blkdebug_child_perm,