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

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

 



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'>
      <driver name='qemu' type='raw' discard='unmap'/>
      <source file='/disk0.file'/>
      <target dev='xvdb' bus='xen'/>
    </disk>

> In the case where LIBXL_HAVE_LIBXL_DEVICE_DISK_DISCARD_ENABLE is
> not defined, then you should call virReportError with the code
> VIR_ERR_CONFIG_UNSUPPORTED, if discard != VIR_DOMAIN_DISK_DISCARD_DEFAULT
> This ensures apps get an error if they had requested discard instead
> of being silently ignored.

I will test this approach and resend.

Olaf

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