From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Suchanek Subject: Re: [PATCH] tmpfs: implement generic xattr support Date: Thu, 12 May 2011 09:52:27 +0200 Message-ID: References: <4DA4B6A8.7030804@gmail.com> <87tydu3t4p.fsf_-_@tucsk.pomaz.szeredi.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Miklos Szeredi , Andreas Dilger , Jiri Kosina , Ric Wheeler , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , Ian Kent , Jeff Moyer , Christoph Hellwig , Eric Paris , Andrew Morton , James Morris , Serge Hallyn To: Hugh Dickins Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 12 May 2011 06:20, Hugh Dickins wrote: > On Tue, 19 Apr 2011, Miklos Szeredi wrote: =2E.. > > I disagree with Andrew on this, it should default to off, consistent = with > the "If unsure, say N" comment. =C2=A0Partly because that's how Linus= prefers > it, for good anti-bloat reasons: if people have got along without a > feature for years, whyever should we suddenly default it on? =C2=A0An= d > partly because TMPFS_POSIX_ACL already defaults to off (as do > EXT2_FS_XATTR and EXT2_FS_POSIX_ACL). > > However... if someone already has CONFIG_TMPFS_POSIX_ACL=3Dy in their > old config, it would be nice to make CONFIG_TMPFS_XATTR=3Dy automatic= ally, > so we're not in danger of removing their old functionality. =C2=A0But= I haven't > thought of the right way to achieve that - maybe your helpful POSIX A= CL > comment is enough, but automatic would be better. > > Few people would choose TMPFS_XATTR on and TMPFS_POSIX_ACL off: perha= ps it > would work to make CONFIG_TMPFS_XATTR the new config option to cover = both, > and select it from config TMPFS_POSIX_ACL (without a prompt) so the > oldconfig propagates correctly. =C2=A0Perhaps. =C2=A0But I haven't tr= ied myself, > and you may be forgiveably disinclined to make config experiments! The xattrs are required for overlayfs so "generic" kernels will probably want those. However, the "generic" kernels likely have the acls already so this is not that much of an issue. Perhaps the acls should select xattrs so that in configs that had acls the xattrs are added automagically. Or does it already work with depends? Thanks Michal > >> =C2=A0config TMPFS_POSIX_ACL >> =C2=A0 =C2=A0 =C2=A0 bool "Tmpfs POSIX Access Control Lists" >> - =C2=A0 =C2=A0 depends on TMPFS >> + =C2=A0 =C2=A0 depends on TMPFS_XATTR >> =C2=A0 =C2=A0 =C2=A0 select GENERIC_ACL >> =C2=A0 =C2=A0 =C2=A0 help