Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934033Ab0GSOJm (ORCPT ); Mon, 19 Jul 2010 10:09:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1029 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933591Ab0GSOJk (ORCPT ); Mon, 19 Jul 2010 10:09:40 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20100718084955.GB27794@infradead.org> References: <20100718084955.GB27794@infradead.org> <20100715021709.5544.64506.stgit@warthog.procyon.org.uk> <20100715021720.5544.19973.stgit@warthog.procyon.org.uk> To: Christoph Hellwig Cc: dhowells@redhat.com, viro@ZenIV.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, samba-technical@lists.samba.org, linux-ext4@vger.kernel.org Subject: Re: [PATCH 09/18] xstat: Make special system filesystems return FS_SPECIAL_FL [ver #6] Date: Mon, 19 Jul 2010 15:09:33 +0100 Message-ID: <8426.1279548573@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1421 Lines: 36 Christoph Hellwig wrote: > special is not a very useful identifier. Also what you are returning > is per-filesystem data, not per-file. This needs to go into statfs, > not into stat. We're about to introduce flags for statfs, so try > to do it ontop of those. > > The same thing applies to the remote flag in the next patch. Which means that you have to do two calls (xstat+statfs) to find this information that we can return pretty much for free here, though you can cache it based on st_dev, I suppose. Also, not all the flags are per-filesystem. The following are: FS_SPECIAL_FL /* Special file as found in procfs/sysfs */ FS_REMOTE_FL /* File is remote */ but the rest aren't: FS_AUTOMOUNT_FL /* Specific automount point */ FS_AUTOMOUNT_ANY_FL /* Unspecific automount directory */ FS_ENCRYPTED_FL /* File is encrypted */ FS_HIDDEN_FL /* File is marked hidden (DOS+) */ FS_SYSTEM_FL /* File is marked system (DOS+) */ FS_ARCHIVE_FL /* File is marked archive (DOS+) */ FS_TEMPORARY_FL /* File is temporary (NTFS/CIFS) */ FS_OFFLINE_FL /* File is offline (CIFS) */ FS_REPARSE_POINT_FL /* Reparse point (NTFS/CIFS) */ David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/