From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS4lq-0001BN-Pz for qemu-devel@nongnu.org; Fri, 04 Oct 2013 08:46:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS4lg-0001f2-Tn for qemu-devel@nongnu.org; Fri, 04 Oct 2013 08:46:14 -0400 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:46550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS4lg-0001ex-KI for qemu-devel@nongnu.org; Fri, 04 Oct 2013 08:46:04 -0400 Received: by mail-wg0-f41.google.com with SMTP id l18so2078538wgh.2 for ; Fri, 04 Oct 2013 05:46:03 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <524EB886.5010207@redhat.com> Date: Fri, 04 Oct 2013 14:45:58 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <5203744F.4010407@ramses-pyramidenbau.de> <5203884F.5040805@redhat.com> <524E68B4.10906@redhat.com> <524E693B.4070500@ozlabs.ru> In-Reply-To: <524E693B.4070500@ozlabs.ru> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Using TRIM to shrink qcow2 images List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: QEMU Developers Il 04/10/2013 09:07, Alexey Kardashevskiy ha scritto: > On 10/04/2013 05:05 PM, Paolo Bonzini wrote: >> Il 04/10/2013 08:22, Alexey Kardashevskiy ha scritto: >>> >>> btw I tried "discard=on" as you described (with if=virtio) and received >>> an error: >>> [root@localhost ~]# fstrim -v / >>> fstrim: /: FITRIM ioctl failed: Operation not supported >>> >>> In my case if=virtio means virtio-blk. If I use virtio-scsi or ibmvscsi, >>> fstrim works just fine but failing virtio-blk bothers me a bit as we >>> might have a bug in ppc64, do not we? (we == ppc64 folks, of course :) ) >>> >> >> No, virtio-blk does not support trim. > > So the example was broken or if=virtio uses virtio-scsi (instead of > virtio-blk) on x86? It was broken. IDE works, as well as any SCSI HBA (including USB storage). Paolo