NFSv4 ACL support in star

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Thu Nov 7 14:36:05 UTC 2013


Tim Kientzle <kientzle at acm.org> wrote:

> >> Use the usual pathconf(3), with _PC_ACL_NFS4.
> > 
> > This looks like an interface that is not optimized for performance.
>
> If you call it only once per filesystem, the performance is not an issue.
> Libarchive caches filesystem properties as it traverses the tree,
> so it would have no problem with this.

Then you need to call stat() for every file or need to know every mount point, 
that might be a single file...

> But there are also filesystems (AIX, I think) that permit different
> types of ACLs on different files in the same file system.
>
> I would like to see a bit added to stat() indicating the presence of
> either POSIX.1e or NFSv4 ACLs so that clients can efficiently
> determine this on a per-file basis.

SCO UnixWare uses the UFS ACL implementation from SVr4/Solaris but added a
st_aclcnt field in struct stat. Do you have free space in strct stat on BSD?

Jörg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily


More information about the posix1e mailing list