From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjOQW-0002Pd-S5 for qemu-devel@nongnu.org; Mon, 03 Jun 2013 02:39:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjOQS-0001rE-Be for qemu-devel@nongnu.org; Mon, 03 Jun 2013 02:39:32 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:60713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjOQS-0001r8-5q for qemu-devel@nongnu.org; Mon, 03 Jun 2013 02:39:28 -0400 Received: by mail-we0-f173.google.com with SMTP id x55so1377556wes.18 for ; Sun, 02 Jun 2013 23:39:27 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <51AC3A14.5020602@redhat.com> Date: Mon, 03 Jun 2013 08:39:16 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] fstrim and cache=none List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dusty Mabe Cc: qemu-devel@nongnu.org Il 02/06/2013 22:21, Dusty Mabe ha scritto: > Hi, > > Is it valid to have cache=none and discard=unmap together? I notice > that when I have cache=none the fstrim operations inside of my guests > gives me an error What error? Can you add an extra disk and try dd if=/dev/urandom of=/dev/sdc bs=1M count=32 sg_unmap -l0 -n64 /dev/sdc from within the guest? > and i get this from the sys filesystem: > > [root@guest ~]# cat /sys/block/sdb/queue/discard* > 4096 > 0 > 0 This is expected. It won't change between discard=unmap and discard=ignore, too. (Tip: Use "grep . /sys/block/sdb/queue/discard*" so that it shows the filename). > > > This wasn't very obvious to me to begin with and just wanted to see if > this is a bug or as designed. It should be. It may be a Linux bug, too. Paolo