From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Ts'o Subject: Re: Argument type for FS_IOC_GETFLAGS/FS_IOC_SETFLAGS ioctls Date: Sun, 1 Dec 2013 23:52:32 -0500 Message-ID: <20131202045232.GA25294@thunk.org> References: <20131126200559.GH20559@hall.aurel32.net> <20131127010141.GA10273@birch.djwong.org> <20131127040013.GA19941@thunk.org> <20131129045412.GA18142@thunk.org> <20131129052748.GV10988@dastard> <20131129142205.GA21527@thunk.org> <20131201222003.GX10988@dastard> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andreas Dilger , "Darrick J. Wong" , Aurelien Jarno , Alexander Viro , linux-fsdevel , Robert Edmonds , Rob Browning To: Dave Chinner Return-path: Received: from imap.thunk.org ([74.207.234.97]:35412 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751817Ab3LBEwx (ORCPT ); Sun, 1 Dec 2013 23:52:53 -0500 Content-Disposition: inline In-Reply-To: <20131201222003.GX10988@dastard> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Dec 02, 2013 at 09:20:03AM +1100, Dave Chinner wrote: > Ugh, that'll just screw it up even more. And if we put the ~10 XFS > flags in there that aren't supported by FS_IOC_GETFLAGS, and all the > others from other filesystems, we'll be out of space in a couple of > kernel releases... What are the definitions XFS flags, and how is XFS currently setting/getting them, out of curiosity? > And FWIW, an attribute based approach means you don't need to get > the flags before setting them to ensure you don't reset flags you > don't care about, so it's safer from that perspective, too... Sure, but it will also be more complex, since we'll now have to parse a whole series of strings and translate them into flags. ... and then the m68k and other small device folks will start kvetching about how the kernel gets bigger with every release, and how their poor bootlader doesn't support kernels bigger than some arbitrary limit. > > The options and opportunities for bike shedding are endless. :-) > > I'm not interested in bike shedding - let's just solve the problem > once and for all.... I'm curious what the XFS flags are because it's not clear to me whether the total number of file system attributes that would be legitimately fs generic are in the dozens, hundreds, or thousands. There is such a thing as overdesign. Regards, - Ted