qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Pass the drive's readonly attribute to the gues


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH] Pass the drive's readonly attribute to the guest OS
Date: Wed, 14 Oct 2009 18:07:55 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]