Commit 8ca5bfdc authored by Kevin Wolf's avatar Kevin Wolf
Browse files

qcow2: Rename qcow2_co_create2() to qcow2_co_create()



The functions originally known as qcow2_create() and qcow2_create2()
are now called qcow2_co_create_opts() and qcow2_co_create(), which
matches the names of the BlockDriver callbacks that they will implement
at the end of this patch series.

Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
parent c2808aba
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -2761,7 +2761,7 @@ static uint64_t qcow2_opt_get_refcount_bits_del(QemuOpts *opts, int version,
}

static int coroutine_fn
qcow2_co_create2(const char *filename, int64_t total_size,
qcow2_co_create(const char *filename, int64_t total_size,
                const char *backing_file, const char *backing_format,
                int flags, size_t cluster_size, PreallocMode prealloc,
                QemuOpts *opts, int version, int refcount_order,
@@ -3034,7 +3034,7 @@ static int coroutine_fn qcow2_co_create_opts(const char *filename, QemuOpts *opt

    refcount_order = ctz32(refcount_bits);

    ret = qcow2_co_create2(filename, size, backing_file, backing_fmt, flags,
    ret = qcow2_co_create(filename, size, backing_file, backing_fmt, flags,
                          cluster_size, prealloc, opts, version, refcount_order,
                          encryptfmt, &local_err);
    error_propagate(errp, local_err);