From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH 2/8] VFS: per inode statfs (core) Date: Tue, 25 Oct 2005 05:25:19 +0100 Message-ID: <20051025042519.GJ7992@ftp.linux.org.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: akpm@osdl.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:30149 "EHLO ZenIV.linux.org.uk") by vger.kernel.org with ESMTP id S1751449AbVJYEZV (ORCPT ); Tue, 25 Oct 2005 00:25:21 -0400 To: Miklos Szeredi Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, Oct 24, 2005 at 06:55:19PM +0200, Miklos Szeredi wrote: > This patch adds a statfs method to inode operations. This is invoked > whenever the dentry is available (not called from sys_ustat()) and the > filesystem implements this method. Otherwise the normal > s_op->statfs() will be called. > > This change is backward compatible, but calls to vfs_statfs() should > be changed to vfs_dentry_statfs() whenever possible. What the fuck for? statfs() returns data that by definition should not depend on inode within a filesystem. NAK, and if FUSE needs that for something, it's *badly* misdesigned.