qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 584143] [NEW] qemu fails to set hdd serial number
@ 2010-05-22  9:21 Michael Tokarev
  2010-05-22 16:13 ` [Qemu-devel] [Bug 584143] " Loïc Minier
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: Michael Tokarev @ 2010-05-22  9:21 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

The -drive ...,serial=xyz option is broken, at least in 0.12.  See
Debian bug#573439, http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=573439 for details.

The proposed fix from the original reporter:

--- qemu-kvm-0.12.3+dfsg/vl.c	2010-02-26 11:34:00.000000000 +0900
+++ qemu-kvm-0.12.3+dfsg.old/vl.c	2010-03-11 02:26:00.134217787 +0900
@@ -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;

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: patch

-- 
qemu fails to set hdd serial number
https://bugs.launchpad.net/bugs/584143
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
The -drive ...,serial=xyz option is broken, at least in 0.12.  See Debian bug#573439, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573439 for details.

The proposed fix from the original reporter:

--- qemu-kvm-0.12.3+dfsg/vl.c	2010-02-26 11:34:00.000000000 +0900
+++ qemu-kvm-0.12.3+dfsg.old/vl.c	2010-03-11 02:26:00.134217787 +0900
@@ -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;

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-07-06 11:41 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-22  9:21 [Qemu-devel] [Bug 584143] [NEW] qemu fails to set hdd serial number Michael Tokarev
2010-05-22 16:13 ` [Qemu-devel] [Bug 584143] " Loïc Minier
2010-05-24 14:55 ` C de-Avillez
2010-06-02 20:36 ` Luiz Capitulino
2010-06-16 20:03 ` Rob
2010-06-29  7:31 ` Коренберг Марк
2011-01-01 14:34 ` Aurelien Jarno
2011-02-20 17:13 ` Aurelien Jarno
2011-03-14 22:34 ` Serge Hallyn
2011-03-15  2:48 ` Launchpad Bug Tracker
2011-03-15  2:54 ` Launchpad Bug Tracker
2011-03-15  4:05 ` Serge Hallyn
2011-03-15  4:13 ` Serge Hallyn
2011-03-15  4:25 ` Serge Hallyn
2011-03-15 13:29 ` Serge Hallyn
2011-03-15 13:37 ` Serge Hallyn
2011-03-15 22:34 ` Serge Hallyn
2011-08-10 23:02 ` Bug Watch Updater
2013-07-06 11:34 ` Adolfo Jayme Barrientos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).