qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] block: Set cdrom device read only flag


From: Kevin Shanahan
Subject: Re: [Qemu-devel] [PATCH] block: Set cdrom device read only flag
Date: Thu, 2 Aug 2012 11:46:14 +0930
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Aug 02, 2012 at 11:02:42AM +0930, Kevin Shanahan wrote:
> Set the block driver read_only flag for cdrom devices so that
> qmp_change_blockdev does not attempt to open cdrom files in read-write
> mode when changing media.

Hrm, this fixes my simple test case using the kvm monitor directly but
changing media via libvirt still has the same issue (fails for RO
files, succeeds for writable files).

$ virsh attach-disk --type cdrom --mode readonly test1 
/srv/kvm/iso/ubuntu-12.04-server-amd64.iso hdc
error: Failed to attach disk
error: internal error unable to execute QEMU command 'change': Could not open 
'/srv/kvm/iso/ubuntu-12.04-server-amd64.iso'

I'll keep looking into it.

Cheers,
Kevin.



reply via email to

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