Re: [libvirt] disk XML for error policy

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

 



On 03/17/2010 11:09 AM, Daniel P. Berrange wrote:
On Tue, Mar 16, 2010 at 10:14:26PM -0400, Dave Allan wrote:
Hi Dan,

What do you think of this for the disk XML specifying what to do on error:

     <disk type='file' device='disk'>
       <source file='/storage/guest_disks/libgdu'/>
       <target dev='vda' bus='virtio'/>
       <on_err rerror='stop' werror='stop'/>
     </disk>

I'm in two minds as to whether we really need separate policies for read
and write. I know QEMU supports that, but even those who implememted it
told me it was rather redundant&  a historical accident because they did
not want to rename the existing 'werror' attribute when they added the
'rerror' bit. So unless someone has a compelling reason for them to be
separate I think we can have a single policy.

Heh, makes sense to me; one policy it is.

If we follow the style of the<on_reboot>  <on_poweroff>  elements we'd
have something like

   <on_error>stop</on_error>

My only other thought would be to do it as an attribute on the existing
<driver>  element in disks, where we have disk format&  cache mode already

Adding an attribute seems like a nice way to do it.

Dave

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]