From: "Richard W.M. Jones" Subject: Re: fstrim has no effect on a just-mounted filesystem Date: Tue, 11 Mar 2014 22:04:24 +0000 Message-ID: <20140311220424.GB19176@redhat.com> References: <20140311213932.GA19176@redhat.com> <531F8456.2020404@redhat.com> <20140311220013.GV1346@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-ext4@vger.kernel.org To: Eric Sandeen Return-path: Received: from mx1.redhat.com ([209.132.183.28]:6153 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753588AbaCKWE0 (ORCPT ); Tue, 11 Mar 2014 18:04:26 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2BM4Ple021367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Mar 2014 18:04:25 -0400 Content-Disposition: inline In-Reply-To: <20140311220013.GV1346@redhat.com> Sender: linux-ext4-owner@vger.kernel.org List-ID: > > And if you strace it what does the ioctl return? It seems OK: stat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/", O_RDONLY) = 0 ioctl(0, FITRIM, 0x7fffbfb2be60) = 0 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org