From: Michael Tokarev <mjt@tls.msk.ru>
To: Kouichi ONO <kou1.ono@gmail.com>, 573439@bugs.debian.org
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: Bug#573439: qemu-kvm: fail to set hdd serial number
Date: Thu, 11 Mar 2010 18:34:16 +0300 [thread overview]
Message-ID: <4B990D78.6050708@msgid.tls.msk.ru> (raw)
In-Reply-To: <20100311.234200.145758949990685830.kou1.ono@gmail.com>
tags 573439 + upstream patch pending
thanks
Kouichi ONO wrote:
> Package: qemu-kvm
> Version: 0.12.3+dfsg-3
> Severity: normal
>
> Hello,
>
> On version 0.12.3, -drive serial=XXX option does not work.
> Below patch fixes it. 'serial' is pointer, not array.
>
>
> --- 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;
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
next parent reply other threads:[~2010-03-11 15:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20100311.234200.145758949990685830.kou1.ono@gmail.com>
2010-03-11 15:34 ` Michael Tokarev [this message]
2010-04-22 9:40 ` [Qemu-devel] Re: Bug#573439: qemu-kvm: fail to set hdd serial number Michael Tokarev
2010-04-24 13:05 ` Andreas Färber
2010-04-25 20:35 ` Michael Tokarev
2010-04-26 11:48 ` Jamie Lokier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B990D78.6050708@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=573439@bugs.debian.org \
--cc=kou1.ono@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.