[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with find + AFS + acl="l"

From: Daniel Richard G.
Subject: Re: Problem with find + AFS + acl="l"
Date: Wed, 1 Nov 2006 15:01:00 -0500
User-agent: Mutt/1.5.9i

On Wed, 2006 Nov 01 18:42:34 +0000, James Youngman wrote:
> But my question is, does AFS guanrantee that readdir() will return
> them in that order?

It does appear that "." and ".." come first consistently, but is this
really necessary? Ext3 itself doesn't do this.

> >It'll know from the get-go if an entry is a subdirectory or not, so no
> >problem there.
> But I believe that only works if find has a way of knowing (without
> stat()ing all the mount points) if a directory is in AFS or not.

There isn't a good way of going from some arbitrary path to a filesystem
type? (I'm not very familiar with this part of the POSIX API, alas.)

If not, it might be sufficient to check if the directory's canonical
path is under /afs. (You're never going to have AFS mounted on e.g. /usr
or /mnt/afs.)

> >What I also wanted to suggest was more graceful handling of the "we
> >really can't tell what this entry is" case, by adding a "-type u" test.
> Yes, that's a good idea.  Could you log this as a separate bug on
> Savannah? (svannah.gnu.org).    The same thing could also be useful
> for entries in directories which allow r but not x.

Will do!


NAME   = Daniel Richard G.       ##  Remember, skunks       _\|/_  meef?
EMAIL1 = address@hidden        ##  don't smell bad---    (/o|o\) /
EMAIL2 = address@hidden      ##  it's the people who   < (^),>
WWW    = http://www.******.org/  ##  annoy them that do!    /   \
(****** = site not yet online)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]