mirror of https://gitee.com/openkylin/qemu.git
QemuOpts: make the drive id actually show up in "info block".
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
parent
6d378185c6
commit
e23d9c4de1
2
vl.c
2
vl.c
|
@ -2213,7 +2213,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
|
|||
/* init */
|
||||
|
||||
dinfo = qemu_mallocz(sizeof(*dinfo));
|
||||
if ((buf = qemu_opt_get(opts, "id")) != NULL) {
|
||||
if ((buf = qemu_opts_id(opts)) != NULL) {
|
||||
dinfo->id = qemu_strdup(buf);
|
||||
} else {
|
||||
/* no id supplied -> create one */
|
||||
|
|
Loading…
Reference in New Issue