aboutsummaryrefslogtreecommitdiff
path: root/block/null.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-09-04 12:07:19 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-06-28 14:44:51 +0200
commitd656aaa1369adcd20baea485d4a96a4bfd6b1c86 (patch)
tree92b9e147a66667e377084ee7e790fc52aaf34d15 /block/null.c
parent44b424dc4a3e2d47fa20676f00645fb950d8d76a (diff)
downloadqemu-d656aaa1369adcd20baea485d4a96a4bfd6b1c86.zip
qemu-d656aaa1369adcd20baea485d4a96a4bfd6b1c86.tar.gz
qemu-d656aaa1369adcd20baea485d4a96a4bfd6b1c86.tar.bz2
block: rename former bdrv_file_open callbacks
Since there is no bdrv_file_open callback anymore, rename the implementations so that they end with "_open" instead of "_file_open". NFS is the exception because all the functions are named nfs_file_*. Suggested-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block/null.c')
-rw-r--r--block/null.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/block/null.c b/block/null.c
index 6fa64d2..4730acc 100644
--- a/block/null.c
+++ b/block/null.c
@@ -77,8 +77,8 @@ static void null_aio_parse_filename(const char *filename, QDict *options,
}
}
-static int null_file_open(BlockDriverState *bs, QDict *options, int flags,
- Error **errp)
+static int null_open(BlockDriverState *bs, QDict *options, int flags,
+ Error **errp)
{
QemuOpts *opts;
BDRVNullState *s = bs->opaque;
@@ -283,7 +283,7 @@ static BlockDriver bdrv_null_co = {
.protocol_name = "null-co",
.instance_size = sizeof(BDRVNullState),
- .bdrv_open = null_file_open,
+ .bdrv_open = null_open,
.bdrv_parse_filename = null_co_parse_filename,
.bdrv_co_getlength = null_co_getlength,
.bdrv_co_get_allocated_file_size = null_co_get_allocated_file_size,
@@ -304,7 +304,7 @@ static BlockDriver bdrv_null_aio = {
.protocol_name = "null-aio",
.instance_size = sizeof(BDRVNullState),
- .bdrv_open = null_file_open,
+ .bdrv_open = null_open,
.bdrv_parse_filename = null_aio_parse_filename,
.bdrv_co_getlength = null_co_getlength,
.bdrv_co_get_allocated_file_size = null_co_get_allocated_file_size,