Re: 32 Groups Maximum in 2.4

Andreas Dilger (adilger@turbolabs.com)
Thu, 15 Nov 2001 13:34:16 -0700


On Nov 15, 2001 14:03 -0500, Jackie Meese wrote:
> Andreas Dilger wrote:
> > On Nov 15, 2001 10:28 -0500, Jackie Meese wrote:
> >>I've been looking for some time on how to raise the maximum number of
> >>groups for the 2.4 kernel. I've discovered how to do this kernel, with
> >>a discussion a few months ago on this
> >>list.http://www.cs.helsinki.fi/linux/linux-kernel/2001-13/0807.html
> >
> > Have you considered ACLs instead? http://acl.bestbits.at/
> > Also available for ext3 (I think reiserfs may also support ACLs, not sure).
> > It might not suit your needs, but maybe it does, and it is a better
> > long-term solution.
>
> The current backup software used for our servers is one big reason for
> writing off ACL fairly quickly. Having to check for compatability on
> other software we use is another reason this was ruled out.

Actually not. If you want to save/restore ACLs, you can easily do
something like the following before each backup:

getfacl -R --skip_base > .acl_backup

and if you need to restore ACLs, you to the reverse after a restore:

setacl --restore=.acl_backup

This puts the ACLs into a regular file that any backup system can handle.

The EA/ACL support will _likely_ be put into 2.5, so it will probably
be easier to use this than to always patch to support > 32 groups,
including all of the user tools, etc (which AFAIK is not anywhere on
the radar to go into the stock kernel, especially since it impacts the
fast-path for _every_ process either by making the tast struct bigger,
or requiring an extra dereference to get at a dynamically-allocated
group list).

Cheers, Andreas

--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

- 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/