From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q43KMv77198236 for ; Thu, 3 May 2012 15:22:57 -0500 Received: from fieldses.org (fieldses.org [174.143.236.118]) by cuda.sgi.com with ESMTP id VDpRVbA5cuAyRkoy (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 03 May 2012 13:22:56 -0700 (PDT) Date: Thu, 3 May 2012 16:22:49 -0400 From: "J. Bruce Fields" Subject: Re: detecting case-insensitivity Message-ID: <20120503202249.GB19237@fieldses.org> References: <20120407140029.GA24090@fieldses.org> <20120411200335.GD28816@infradead.org> <20120411203735.GB31706@fieldses.org> <20120430212649.GB22323@fieldses.org> <20120430230105.GL7015@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120430230105.GL7015@dastard> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: Christoph Hellwig , xfs@oss.sgi.com On Tue, May 01, 2012 at 09:01:05AM +1000, Dave Chinner wrote: > On Mon, Apr 30, 2012 at 05:26:49PM -0400, J. Bruce Fields wrote: > > On Wed, Apr 11, 2012 at 04:37:35PM -0400, J. Bruce Fields wrote: > > > On Wed, Apr 11, 2012 at 04:03:35PM -0400, Christoph Hellwig wrote: > > > > Can you add a new s_feature_flags instead of s_flags which is shared > > > > with the mount user ABI? MS_I_VERSION should also move there. > > > > > > I was wondering about that. Yes, that makes a lot more sense, I'll work > > > on it. > > > > Just something like this? > > ..... > > > #define S_SYNC 1 /* Writes are synced at once */ > > @@ -268,7 +271,7 @@ struct inodes_stat_t { > > ((inode)->i_flags & (S_SYNC|S_DIRSYNC))) > > #define IS_MANDLOCK(inode) __IS_FLG(inode, MS_MANDLOCK) > > #define IS_NOATIME(inode) __IS_FLG(inode, MS_RDONLY|MS_NOATIME) > > -#define IS_I_VERSION(inode) __IS_FLG(inode, MS_I_VERSION) > > +#define IS_I_VERSION(inode) ((inode)->i_sb->s_flags & SF_I_VERSION) > > (inode)->i_sb->s_feature_flags? Whoops, thanks. > > #define IS_NOQUOTA(inode) ((inode)->i_flags & S_NOQUOTA) > > #define IS_APPEND(inode) ((inode)->i_flags & S_APPEND) > > @@ -1428,7 +1431,8 @@ struct super_block { > > const struct dquot_operations *dq_op; > > const struct quotactl_ops *s_qcop; > > const struct export_operations *s_export_op; > > - unsigned long s_flags; > > + unsigned long s_flags; /* mount flags */ > > + unsigned int s_feature_flags; > > why not an unsigned long like s_flags? OK. (Why does it matter? I figured we can always extend it later.) --b. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs