Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f6N7iWP13302 for linux-xfs-outgoing; Mon, 23 Jul 2001 00:44:32 -0700 Received: from deliverator.sgi.com (deliverator.sgi.com [204.94.214.10]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f6N7iUV13283 for ; Mon, 23 Jul 2001 00:44:30 -0700 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via SMTP id AAA19947 for ; Mon, 23 Jul 2001 00:44:17 -0700 (PDT) mail_from (nathans@wobbly.melbourne.sgi.com) Received: from wobbly.melbourne.sgi.com (wobbly.melbourne.sgi.com [134.14.55.135]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id RAA28342; Mon, 23 Jul 2001 17:43:09 +1000 Received: (from nathans@localhost) by wobbly.melbourne.sgi.com (SGI-8.9.3/8.9.3) id RAA31148; Mon, 23 Jul 2001 17:43:05 +1000 (AEST) From: "Nathan Scott" Message-Id: <10107231743.ZM221213@wobbly.melbourne.sgi.com> Date: Mon, 23 Jul 2001 17:43:02 +1000 In-Reply-To: Steve Lord "Re: Anyone using XFS ACLs? (fwd)" (Jul 20, 1:33pm) References: <200107201833.f6KIX7H08390@jen.americas.sgi.com> X-Mailer: Z-Mail (3.2.3 08feb96 MediaMail) To: Danny Cox Subject: Re: Anyone using XFS ACLs? (fwd) Cc: linux-xfs@oss.sgi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk hi Danny, On Jul 20, 1:33pm, Steve Lord wrote: > Subject: Re: Anyone using XFS ACLs? (fwd) > > This was sent privately, Danny later said he meant to send to the list, > any message mangling is entirely the fault of my mail tool. I expect we > will get something based on this into the tree fairly soon (is anyone > in Australia listening? hint hint). > > Steve > > > ------- Forwarded Message > > Date: Fri, 20 Jul 2001 12:35:35 -0400 > From: Danny Cox > To: Steve Lord > Subject: Re: Anyone using XFS ACLs? > > This is a multi-part message in MIME format. > - --------------4E072E6D209773EBBDAD1589 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > Steve, > > Steve Lord wrote: > > The other option here is for someone to take the source of something > > like chown which has a -R option, and chacl which does not. Merge the > > two and send in a patch. This is the sort of project which would be > > fairly easy for someone to tackle, would solve a problem. We are > > very tight on resources here and cannot be relied upon for things > > like bells and whistle extensions to commands like this. > > Steve, here is a patch that adds an '-r' arg to chacl, and decends > (depth first) a directory tree changing ACLs as it goes. It doesn't > attempt to list them recursively, as that is a little trickier (and > neither chown nor chmod attempt this). > > I did have a little problem. The "Makefile" uses the > '-D_FILE_OFFSET_BITS=64' which comes from ../include/builddefs, which > comes from ../include/builddefs.in, and causes the readdir to not work > correctly. The included file "" gets the wrong size, which > doesn't agree with my libc (I'm using RedHat 6.2, and it's standard > glibc). When I recompiled without that flag, it works like a champ. > > Short of defining 'struct dirent' myself (HACK!), I don't know how to > work around this other than how I did (remove the flag, which probably > breaks something else). > Tim and I were just having a look through this & we have a couple of questions/observations: - the descent algorithm you've used seems to be breadth-first, rather than depth-first ... was this your intention? (your mail suggests not). We agree it should be depth first (easily fixed by moving the call to walk_dir up to the top of set_acl); - trying to understand your '-D_FILE_OFFSET_BITS=64' problem - I think we do need this, I just can't understand how this was failing for you (can you give more details?) - I have a rh6.2 system here and it seems to work for the (limited) test cases we tried. We looked through the fileutils-4.1 code and that seems to define _FILE_OFFSET_BITS to 64 (via config.h) on redhat 6.2 also... Otherwise, the patch looks fine - I'll probably check it in shortly. thanks. -- Nathan