mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
block: Use QDict helpers for --force-share
Fam's addition of --force-share in commits459571f7
and335e9937
were developed prior to the addition of QDict scalar insertion macros, but merged after the general cleanup in commit46f5ac20
. Patch created mechanically by rerunning: spatch --sp-file scripts/coccinelle/qobject.cocci \ --macro-file scripts/cocci-macro-file.h --dir . --in-place Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20170515195439.17677-1-eblake@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
08fba7ac9b
commit
579cf1d104
2 changed files with 4 additions and 5 deletions
|
@ -76,7 +76,7 @@ static int openfile(char *name, int flags, bool writethrough, bool force_share,
|
|||
QDECREF(opts);
|
||||
return 1;
|
||||
}
|
||||
qdict_put(opts, BDRV_OPT_FORCE_SHARE, qbool_from_bool(true));
|
||||
qdict_put_bool(opts, BDRV_OPT_FORCE_SHARE, true);
|
||||
}
|
||||
qemuio_blk = blk_new_open(name, NULL, opts, flags, &local_err);
|
||||
if (!qemuio_blk) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue