]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commit
libxl: add option for discard support to xl disk configuration
authorOlaf Hering <olaf@aepfle.de>
Mon, 19 May 2014 09:50:19 +0000 (11:50 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 19 May 2014 11:50:27 +0000 (12:50 +0100)
commit417e6b70d73ffe8f8d3938aa30a413b35098e614
tree829946084114d3a69166fbfc54d8838c1892e2e0
parent86216963fd1d89883bb8120535704fdc79fdad50
libxl: add option for discard support to xl disk configuration

Handle new boolean option discard/no-discard 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 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 <olaf@aepfle.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
docs/misc/xl-disk-configuration.txt
tools/libxl/check-xl-disk-parse
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_types.idl
tools/libxl/libxlu_disk.c
tools/libxl/libxlu_disk_l.l
xen/include/public/io/blkif.h