[Qemu-devel] [Bug 1523246] Re: Cannot TRIM with VirtIO

2015-12-06 Thread David Manouchehri
Ideally there should be a warning if a user gives discard=unmap and isn't using the SCSI bus. Using the following options allows the guest to detect the drive as a thinly provisioned drive. -drive discard=unmap,detect- zeroes=unmap,cache=none,file=vms/win10.hd.img.vmdk,format=vmdk,if=none,id=hd -d

[Qemu-devel] [Bug 1523246] Re: Cannot TRIM with VirtIO

2015-12-06 Thread David Manouchehri
** Attachment added: "2015-12-06-19:20:59-screenshot.png" https://bugs.launchpad.net/qemu/+bug/1523246/+attachment/4530556/+files/2015-12-06-19%3A20%3A59-screenshot.png -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.

[Qemu-devel] [Bug 1523246] [NEW] Cannot TRIM with VirtIO

2015-12-06 Thread David Manouchehri
Public bug reported: When model=virtio is used, TRIM is not supported. # mount -o discard /dev/vda4 /mnt # mount | tail -1 /dev/vda4 on /mnt type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096) # fstrim /mnt/ fstrim: /mnt/: the discard operation is not supported