xfs
[Top] [All Lists]

Re: Anyone using XFS ACLs?

To: Nathan Straz <nstraz@xxxxxxx>
Subject: Re: Anyone using XFS ACLs?
From: Joshua Baker-LePain <jlb17@xxxxxxxx>
Date: Fri, 20 Jul 2001 10:02:43 -0400 (EDT)
Cc: Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>
In-reply-to: <20010720085420.B701@xxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Fri, 20 Jul 2001 at 8:54am, Nathan Straz wrote

> On Fri, Jul 20, 2001 at 08:24:35AM -0500, Tad Dolphay wrote:
> > >  o Set the ACLs of a pretty large tree of files and directories
> > > recursively.
> > >
> >
> > I don't know if there's a more elegant way to do it but I think one could
> > do it with xargs, for example from the top level directory:
> >
> >    find . -print | xargs -i -t chacl <acl stuff> {}
>
> Try this:
>
> find . -exec chacl <acl stuff> {} \;

Actually, that does the exact same thing as 'find | xargs', only slower.
;)  It constantly has to spawn new chacl processes, then return to the
find, whereas 'find | xargs' finishes the find, then spawns one chacl
process.  I did some testing on this once, and the differences can be
quite remarkable.

Note that, in the above example, the '-i {}' is redundant, since the
default behavior of xargs is to put stdin at the end of the specified
command.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University


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