From: Kevin Wolf <kwolf@redhat.com>
To: Floris Bos / Maxnet <bos@je-eigen-domein.nl>
Cc: Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] ide: Adds "model=s" option, allowing the user to override the default disk model name "QEMU HARDDISK"
Date: Mon, 12 Mar 2012 13:45:01 +0100 [thread overview]
Message-ID: <4F5DEFCD.2050904@redhat.com> (raw)
In-Reply-To: <4F5DE791.8020101@je-eigen-domein.nl>
Am 12.03.2012 13:09, schrieb Floris Bos / Maxnet:
> On 03/12/2012 12:57 PM, Kevin Wolf wrote:
>> Am 10.03.2012 20:56, schrieb Floris Bos:
>>> Some Linux distributions use the /dev/disk/by-id/scsi-SATA_name-of-disk-model_serial addressing scheme
>>> when refering to partitions in /etc/fstab and elsewhere.
>>> This causes problems when starting a disk image taken from an existing physical server under qemu,
>>> because when running under qemu name-of-disk-model is always "QEMU HARDDISK"
>>> This patch introduces a model=s option which in combination with the existing serial=s option can be used to
>>> fake the disk the operating system was previously on, allowing the OS to boot properly.
>>>
>>> Cc: kwolf@redhat.com
>>> Signed-off-by: Floris Bos<dev@noc-ps.com>
>> Oh, and now that I look at the actual patch, do we really want to add
>> the model=... option to -drive? I think just the qdev property may be
>> enough. When you need to set the option, you would need to use -device,
>> but it's not that hard.
>
> Well, to me it makes sense to put it at the same places "serial" is, as
> both options have quite similar functions: faking drive attributes.
-drive serial=... is older than -device, this is why it was okay back
then and why we still have to maintain it for compatibility. If
serial=... was a new patch today, I would probably be asking the same
question there.
Kevin
prev parent reply other threads:[~2012-03-12 13:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-10 19:56 [Qemu-devel] [PATCH] ide: Adds "model=s" option, allowing the user to override the default disk model name "QEMU HARDDISK" Floris Bos
2012-03-11 11:56 ` Andreas Färber
2012-03-12 10:26 ` Stefan Hajnoczi
2012-03-12 11:30 ` Floris Bos / Maxnet
2012-03-12 11:38 ` Kevin Wolf
2012-03-12 11:57 ` Kevin Wolf
2012-03-12 12:09 ` Floris Bos / Maxnet
2012-03-12 12:45 ` Kevin Wolf [this message]
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=4F5DEFCD.2050904@redhat.com \
--to=kwolf@redhat.com \
--cc=armbru@redhat.com \
--cc=bos@je-eigen-domein.nl \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
/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 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).