xen_disk: add discard support (fate#316071) #1

Closed
olafhering wants to merge 1 commits from olh-fate316071-opensuse-1.7 into opensuse-1.7

1 Commits

Author SHA1 Message Date
Olaf Hering
ef42fd7f2d xen_disk: add discard support
Implement discard support for xen_disk. It makes use of the existing
discard code in qemu.

The discard support is enabled unconditionally. The tool stack may provide a
property "discard-enable" in the backend node to optionally disable discard
support.  This is helpful in case the backing file was intentionally created
non-sparse to avoid fragmentation.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
2014-01-31 10:03:27 +01:00