From: Ian Campbell Subject: Re: [PATCH] libxl: add option for discard support to xl disk configuration Date: Wed, 29 Jan 2014 10:28:49 +0000 Message-ID: <1390991329.31814.58.camel@kazak.uk.xensource.com> References: <1390933497-12819-1-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1390933497-12819-1-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: anthony.perard@citrix.com, stefano.stabellini@eu.citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-01-28 at 19:24 +0100, Olaf Hering wrote: > Handle new option discard=on|off for disk configuration. It is supposed > to disable discard support if file based backing storage was > intentionally created non-sparse to avoid fragmentation of the file. > > The option is a boolean and intended for the backend driver. A new > boolean property "discard_enable" is written to the backend node. An > upcoming patch for qemu will make use of this property. The kernel > blkback driver may be updated as well to disable discard for phy based > backing storage. > > Signed-off-by: Olaf Hering > --- > docs/misc/xl-disk-configuration.txt | 13 +++++++++++++ > tools/libxl/check-xl-disk-parse | 21 ++++++++++++++------- > tools/libxl/libxl.c | 2 ++ > tools/libxl/libxl_types.idl | 1 + > tools/libxl/libxlu_disk.c | 1 + > tools/libxl/libxlu_disk_i.h | 2 +- > tools/libxl/libxlu_disk_l.l | 8 ++++++++ > xen/include/public/io/blkif.h | 8 ++++++++ > 8 files changed, 48 insertions(+), 8 deletions(-) > > diff --git a/docs/misc/xl-disk-configuration.txt b/docs/misc/xl-disk-configuration.txt > index 5bd456d..4f81394 100644 > --- a/docs/misc/xl-disk-configuration.txt > +++ b/docs/misc/xl-disk-configuration.txt > @@ -178,6 +178,19 @@ information to be interpreted by the executable program