Bug#573439: qemu-kvm: fail to set hdd serial number
A message that is not in the archive (sent off-list or not yet received): [email protected]
tags 573439 + upstream patch pending
thanks
Quoted 13 lines · Kouichi ONO
Package: qemu-kvm
Version: 0.12.3+dfsg-3
Severity: normalHello,
On version 0.12.3, -drive serial=XXX option does not work. Below patch fixes it. 'serial' is pointer, not array.
vl.c line 2403
Quoted 8 lines
vl.c +1
-1@@ -2397,7 +2397,7 @@ dinfo->on_write_error = on_write_error; dinfo->opts = opts;if (serial) -strncpy (dinfo->serial, serial,sizeof (serial)); +strncpy (dinfo->serial, serial,sizeof (dinfo->serial));QTAILQ_INSERT_TAIL (&drives, dinfo, next);if (is_extboot) { extboot_drive = dinfo;
Good catch! Thank you for the excellent bug report with the patch. It is this way even in upstream qemu, not only in qemu-kvm... So forwarding this to upstream too.
The patch will in in the next release of the Debian package.
Thanks!
/mjt
11.03.2010 18:34, Michael Tokarev wrote:
[]
Quoted 4 lines
Quoted 4 lines
On version 0.12.3, -drive serial=XXX option does not work. Below patch fixes it. 'serial' is pointer, not array.
Quoted 11 lines
vl.c line 2403
Quoted 11 lines
vl.c +1
-1@@ -2397,7 +2397,7 @@ dinfo->on_write_error = on_write_error; dinfo->opts = opts;if (serial) -strncpy (dinfo->serial, serial,sizeof (serial)); +strncpy (dinfo->serial, serial,sizeof (dinfo->serial));QTAILQ_INSERT_TAIL (&drives, dinfo, next);if (is_extboot) { extboot_drive = dinfo;
Folks, can we please add this trivial one-liner to -stable or something? It has been one and a half months since it has been fixed in debian...
Thanks!
/mjt
Am 22.04.2010 um 11:40 schrieb Michael Tokarev:
Quoted 9 lines
11.03.2010 18:34, Michael Tokarev wrote:
[]Quoted 7 lines
Quoted 7 lines
On version 0.12.3, -drive serial=XXX option does not work. Below patch fixes it. 'serial' is pointer, not array.
vl.c +1
-0+0900
[...]
Quoted 2 lines
Folks, can we please add this trivial one-liner to -stable or something? It has been one and a half months since it has been fixed in debian...
Try submitting it as a proper Git patch with summary so that it can be applied to master first; if it's already in master, post the commit id so it can be cherry-picked. Also, mark the subject as [STABLE] or [0.12] or something for Anthony to find it.
Andreas
Quoted 12 lines · Andreas Färber
Am 22.04.2010 um 11:40 schrieb Michael Tokarev:
Quoted 8 lines
11.03.2010 18:34, Michael Tokarev wrote:
[]Quoted 6 lines
Quoted 6 lines
On version 0.12.3, -drive serial=XXX option does not work. Below patch fixes it. 'serial' is pointer, not array.
vl.c 2010-03-11 02:26:00.134217787 +0900 renamed from vl.c 2010-02-26 11:34:00.000000000 +0900 +0
-0[...]
Quoted 7 lines
Quoted 2 lines
Folks, can we please add this trivial one-liner to -stable or something? It has been one and a half months since it has been fixed in debian...
Try submitting it as a proper Git patch with summary so that it can be applied to master first; if it's already in master, post the commit id so it can be cherry-picked. Also, mark the subject as [STABLE] or [0.12] or something for Anthony to find it.
Well, It's not that difficult to carry it in the debian package. Hopefully other distros will follow (the ones who are not already), so that support requests in #kvm@freenode wont mention that again.
Thanks.
/mjt
Quoted 16 lines · Michael Tokarev
Quoted 15 lines · Andreas Färber
Am 22.04.2010 um 11:40 schrieb Michael Tokarev:
Quoted 8 lines
11.03.2010 18:34, Michael Tokarev wrote:
[]Quoted 6 lines
Quoted 6 lines
On version 0.12.3, -drive serial=XXX option does not work. Below patch fixes it. 'serial' is pointer, not array.
vl.c 2010-03-11 02:26:00.134217787 +0900 renamed from vl.c 2010-02-26 11:34:00.000000000 +0900 +0
-0[...]
Quoted 2 lines
Folks, can we please add this trivial one-liner to -stable or something? It has been one and a half months since it has been fixed in debian...
Quoted 8 lines
Quoted 4 lines
Try submitting it as a proper Git patch with summary so that it can be applied to master first; if it's already in master, post the commit id so it can be cherry-picked. Also, mark the subject as [STABLE] or [0.12] or something for Anthony to find it.
Well, It's not that difficult to carry it in the debian package. Hopefully other distros will follow (the ones who are not already), so that support requests in #kvm@freenode wont mention that again.
It would be nice for such trivial fixes to be committed to the stable branch for those of us compiling stable versions from source.
Especially with so many guest regressions lately, so that keeping multiple qemu versions around is an unfortunate necessity for the time being.
-- Jamie