Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread aputerguy
For backup, I am trying to dump a list of the acl's for the files being backed up since my backup program doesn't handle the acls. When I use something like: find /c -exec getfacl {} \; mysavefile It is slow, in part at least because it has to fork a call to getfacl on each file found. Is

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread Larry Hall (Cygwin)
On 11/05/2009 05:00 PM, aputerguy wrote: For backup, I am trying to dump a list of the acl's for the files being backed up since my backup program doesn't handle the acls. When I use something like: find /c -exec getfacl {} \; mysavefile It is slow, in part at least because it has to

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread Dave Korn
aputerguy wrote: For backup, I am trying to dump a list of the acl's for the files being backed up since my backup program doesn't handle the acls. When I use something like: find /c -exec getfacl {} \; mysavefile It is slow, in part at least because it has to fork a call to getfacl

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread Andrew Schulman
For backup, I am trying to dump a list of the acl's for the files being backed up since my backup program doesn't handle the acls. When I use something like: find /c -exec getfacl {} \; mysavefile It is slow, in part at least because it has to fork a call to getfacl on each file

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread Dave Korn
Andrew Schulman wrote: For backup, I am trying to dump a list of the acl's for the files being backed up since my backup program doesn't handle the acls. When I use something like: find /c -exec getfacl {} \; mysavefile It is slow, in part at least because it has to fork a call to

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread aputerguy
Andrew Schulman-3 wrote: getfacl -R? Unfortunately, no '-R' at least on my updated version. The -exec ... \+ and the -print0 | xargs -0 tricks both worked!!! Thanks. Timing and comparing the two approaches, it seems like they both use the same 'user' time but the xargs approach uses only

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread aputerguy
OK... one small problem. Every ~4500 lines and (70-80K characters), both of these methods omit the empty line between the getfacl stanzas. The skipped lines however don't occur at the same places in the two different methods. I assume it must be due to buffering of the long line input or

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread Larry Hall (Cygwin)
On 11/05/2009 11:05 PM, aputerguy wrote: OK... one small problem. Every ~4500 lines and (70-80K characters), both of these methods omit the empty line between the getfacl stanzas. The skipped lines however don't occur at the same places in the two different methods. I assume it must be due to

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Larry Hall (Cygwin) on 11/5/2009 9:13 PM: What empty line between the getfacls stanzas? The blank line that is output after one getfacl process ends. Try 'getfacl . .; getfacl .' vs. 'getfacl .; getfacl . .' to see it. The number of

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)

2009-11-05 Thread Andrew Schulman
Andrew Schulman wrote: For backup, I am trying to dump a list of the acl's for the files being backed up since my backup program doesn't handle the acls. When I use something like: find /c -exec getfacl {} \; mysavefile It is slow, in part at least because it has to fork a call