From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Hudec Subject: Re: [PATCH 2/8] VFS: per inode statfs (core) Date: Wed, 26 Oct 2005 19:31:50 +0200 Message-ID: <20051026173150.GB11769@efreet.light.src> References: <20051025042519.GJ7992@ftp.linux.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uQr8t48UFsdbeI+V" Cc: viro@ftp.linux.org.uk, akpm@osdl.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: Received: from cimice0.lam.cz ([212.71.168.90]:61136 "EHLO cimice.yo.cz") by vger.kernel.org with ESMTP id S964842AbVJZRcR (ORCPT ); Wed, 26 Oct 2005 13:32:17 -0400 To: Miklos Szeredi Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org --uQr8t48UFsdbeI+V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 25, 2005 at 07:44:30 +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. > > >=20 > > > This change is backward compatible, but calls to vfs_statfs() should > > > be changed to vfs_dentry_statfs() whenever possible. > >=20 > > What the fuck for? statfs() returns data that by definition should > > not depend on inode within a filesystem. >=20 > Exactly. But it's specified nowhere that there has to be a one-one > mapping between remote filesystem - local filesystem. Unfortunately making statfs alone aware of them does not help. Most useful tools that use statfs go to /proc/mouts, read all the entries and invoke statfs for each path. So if for some non-root path different values are returned, these tools won't see them anyway. So try to think about how to provide the info about subfilesystems first. -- Jan 'Bulb' Hudec --uQr8t48UFsdbeI+V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDX72GRel1vVwhjGURAhciAKDK+njNkqbifrpnmG8V7NixnlrXaACg6/Wa 1ETVx55KW3CAntS733r1m14= =2FBF -----END PGP SIGNATURE----- --uQr8t48UFsdbeI+V--