Re: [PATCH] Add new attribute writeout to <filesystem> element

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

 



On 12/22/2011 01:01 AM, Deepak C Shetty wrote:
>>> +      The filesystem block has an optional
>>> attribute<code>writeout='immediate'</code>
>>
>> <code>write</code>, and it's better to clarify it only supports
>> "immediate" currently.
> 
> So you are proposing to change the attribute name to write instead of
> writeout ?
> I wanted to keep it as writeout, since it matches with the qemu option
> also, will
>  be easier to locate/debug, no ?

No.  Just because qemu names a feature by a particular name does not
mean the libvirt XML must reflect that same name.  Libvirt is striving
for a hypervisor-agnostic description of what is happening (in this
case, what is happening is a change to the 'write' policy), not a blind
copy of the qemu command line option.

Perhaps 'write_policy=' makes more sense than 'write=', but it's longer.

More importantly, I think you're attaching the attribute to the wrong
XML element.  This belongs in the <driver> sub-element of <disk>,
alongside the <driver
cache='none|writeback|writethrough|directsync|unsafe'> attribute.  It is
not a characteristic of the <disk> as seen by the guest, so much as it
is an attribute of the <driver> used to control how the changes
requested by the guest are reflected back to the host.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]