Re: directory ops?

Alexander Viro (viro@math.psu.edu)
Wed, 2 Jun 1999 12:43:58 -0400 (EDT)


On Wed, 2 Jun 1999, Jamie Lokier wrote:

> Alexander Viro wrote:
> > Adding the test will not hurt, indeed. Doing it accurately might be
> > tricky, though. E.g. ls -l sorts the entries. In userspace. So you'll have
> > to factor that out - I doubt that GNU ls does bogosort, but...
>
> GNU ls stats in readdir order, so no bogosort.

Yes, but ls -l sorts the results. Which is the place where one might
insert interesting algorithms ;-) Seriously, I would not be surprised if
GNU ls had higher userland overhead than BSD one. I'll look them through
today.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/