[libvirt] [Qemu-devel] QEMU fstatfs(2) and libvirt SELinux policy

Christoph Hellwig hch at lst.de
Sat Mar 24 14:47:42 UTC 2012


On Fri, Mar 09, 2012 at 06:16:54PM +0100, Paolo Bonzini wrote:
> > I'm wondering whether it's worth expanding the SELinux policy if we
> > will have no fstatfs(2) callers in QEMU.  Are you planning to drop the
> > XFS code?
> 
> Chris Wedgwood said that on XFS you want to do discard even if the file
> is preallocated, while this is not true on other filesystems.  So I
> guess the detection code should stay.

In generaly you do not want to discard on a preallocated file, especially
not the low-granularity discard you'd get for example from a Win7 box.




More information about the libvir-list mailing list