qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Naphtali Sprei <nsprei@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Pass the drive's readonly attribute to the guest OS
Date: Wed, 14 Oct 2009 18:32:49 +0200	[thread overview]
Message-ID: <4AD5FD31.9040900@redhat.com> (raw)
In-Reply-To: <4AD5F75B.3080702@redhat.com>

Gerd Hoffmann wrote:
> On 10/14/09 17:59, Naphtali Sprei wrote:
>> Gerd Hoffmann wrote:
>>> On 10/14/09 17:52, Naphtali Sprei wrote:
>>>> Hi,
>>>> as a preliminary step for adding read only flag for the -drive
>>>> command, I've added code to pass
>>>> the (existing) read only attribute of the drive to the guest OS (if it
>>>> bother to ask).
>>>>
>>>> I've added for virtio and for scsi.
>>>
>>>> Where is usb ??
>>>
>>> hw/usb-msd.c
>>
>> Thanks,
>> what I meant is I can't find how can it be specified as a drive
>> interface.
> 
> You can use either
> 
>   -usbdevice disk:/some/image
>   (usb_add in monitor)
> 
> or
> 
>   -drive if=none,id=pendrive,file=/some/image
>   -device usb-storage,drive=pendrive
>   (drive_add + device_add in monitor)
> 
> cheers,
>   Gerd
> 
> 
> 

Thanks.
Verified, it "works", meaning readonly attribute passed to guest.

  reply	other threads:[~2009-10-14 16:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-14 15:52 [Qemu-devel] [PATCH] Pass the drive's readonly attribute to the guest OS Naphtali Sprei
2009-10-14 15:57 ` Gerd Hoffmann
2009-10-14 15:59   ` Naphtali Sprei
2009-10-14 16:07     ` Gerd Hoffmann
2009-10-14 16:32       ` Naphtali Sprei [this message]
2009-10-14 16:40 ` Naphtali Sprei
2009-10-15  9:36   ` Kevin Wolf
2009-10-15  9:43     ` Gleb Natapov
2009-10-15  9:50       ` Kevin Wolf
2009-10-15  9:54         ` Gleb Natapov
2009-10-15  9:55           ` Kevin Wolf
2009-10-15 10:01             ` Gleb Natapov
2009-10-15 10:05               ` Kevin Wolf
2009-10-15 10:11                 ` Gleb Natapov
2009-10-15 10:18                   ` Kevin Wolf
  -- strict thread matches above, loose matches on Subject: below --
2009-10-29  9:42 Naphtali Sprei

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=4AD5FD31.9040900@redhat.com \
    --to=nsprei@redhat.com \
    --cc=kraxel@redhat.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 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).