xfs
[Top] [All Lists]

Re: [PATCH, RFC] use generic ACL code

To: Christoph Hellwig <hch@xxxxxx>
Subject: Re: [PATCH, RFC] use generic ACL code
From: Andreas Gruenbacher <agruen@xxxxxxx>
Date: Mon, 25 Feb 2008 09:09:30 +0100
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20080207083222.GA14317@xxxxxx>
Organization: Novell, SuSE Labs
References: <20080207083222.GA14317@xxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 20070904.708012)
On Thursday 07 February 2008 09:32:22 Christoph Hellwig wrote:
> This also introduces the same ACL caching all other Linux filesystems do
> by adding pointers to the acl and default acl in struct xfs_inode.
> It'll probably need some benchmarking to find out whether bloating the
> inode is worth it.

I guess it all depends on the workload.

> It should be possible to use the generic code without this caching by
> revamping the code a little, although no other filesystem currently does
> that.

The options for doing that would be (a) basically what xfs does now, i.e., 
perform the permission checks directly in the on-disk data, or (b) construct 
struct posix_acl objects temporarily for each access. Option (b) doesn't look 
very appealing to me.

> +              * XXX(hch): the tag is 32 bits on disk and 16 bits in core.
> +              *              Any special handling required??
> +              */
> +             acl_e->e_tag = be32_to_cpu(ace->ae_tag);
> +             acl_e->e_perm = be16_to_cpu(ace->ae_perm);

I would check for zero upper bits on disk.


Thanks,
Andreas


<Prev in Thread] Current Thread [Next in Thread>