Re: File manager tree.



On Fri, May 28, 1999 at 12:36:13PM -0500, Miguel de Icaza wrote:
>        2. Slow file systems are all over the place in Unix.  They
>           appear on the most unusual places: special directories might
>           refer to remote servers (afs, dfs), arbitrary locations can
>           be slow (NFS /users), or special vfs places (/#smb/ for
>           server listings).

Maybe it is possible to interrupt directory scanning on timeout?
Then it would be nice to spend e.g. at most 1 second on each directory 
to know if it has subdirectories, and assume it has on timeout.

Don't know if it is possible for VFS, but for real (i.e. nfs/smbfs
etc. mounted) directories it seems to be.

BTW, on certain filesystems it is possible to know number of subdirectories
by looking at number of hard links of the directory. It can be a nice
optimization.

   Alexander.



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