From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN2qU-00023j-4X for qemu-devel@nongnu.org; Mon, 10 Mar 2014 12:14:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN2qO-0001dG-5h for qemu-devel@nongnu.org; Mon, 10 Mar 2014 12:14:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN2qN-0001dB-UW for qemu-devel@nongnu.org; Mon, 10 Mar 2014 12:14:24 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2AGEMCE013721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 10 Mar 2014 12:14:23 -0400 Date: Mon, 10 Mar 2014 16:14:21 +0000 From: "Richard W.M. Jones" Message-ID: <20140310161421.GB6744@redhat.com> References: <20140310161119.GA6744@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140310161119.GA6744@redhat.com> Subject: Re: [Qemu-devel] Trying to get fstrim / discard=unmap to work List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com On Mon, Mar 10, 2014 at 04:11:20PM +0000, Richard W.M. Jones wrote: > Guest: > - guest kernel: 3.13.4-200.fc20.x86_64 > - ext4 guest filesystem > - fstrim from util-linux 2.24.1 > - cat /sys/block/sda/device/scsi_disk/*/provisioning_mode > unmap I noticed that I wasn't mounting the guest filesystem with '-o discard'. However it still doesn't work even after adding this option. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/