Re: [libvirt] [PATCH] [RFC] libxl: add discard support to libxl_device_disk

2014-01-31 Thread Olaf Hering
On Thu, Jan 30, Daniel P. Berrange wrote: Here's two examples: Thanks, this worked for me: disk type='file' device='disk' driver name='qemu' type='raw' discard='ignore'/ source file='/disk0.raw'/ target dev='xvda' bus='xen'/ /disk disk type='file' device='disk'

[libvirt] [PATCH] [RFC] libxl: add discard support to libxl_device_disk

2014-01-30 Thread Olaf Hering
Translate libvirt discard settings into libxl-4.5 discard settings. It makes use of upcoming changes for xen-4.5: http://lists.xenproject.org/archives/html/xen-devel/2014-01/msg02632.html This patch is not compile tested. How is a config file supposed to look like to make use of a discard=on|off

Re: [libvirt] [PATCH] [RFC] libxl: add discard support to libxl_device_disk

2014-01-30 Thread Daniel P. Berrange
On Thu, Jan 30, 2014 at 09:35:13PM +0100, Olaf Hering wrote: Translate libvirt discard settings into libxl-4.5 discard settings. It makes use of upcoming changes for xen-4.5: http://lists.xenproject.org/archives/html/xen-devel/2014-01/msg02632.html This patch is not compile tested. How is a