Re: ext2 in a dos file/partition

Raul Miller (rdm@rdm.legislate.com)
7 Mar 1996 15:12:00 GMT


What about this solution: If the "inode" of a umsdos directory is
opened, the EMD file is pre-read, building an in-core hash table
with filenames and the headers to the FAT chains. When the inode is
released, the hash-table is discarded. I think garbage collection
in the EMD file is not necessary; only the usual bzero().

Hmm...

This might be easier to code up. It wouldn't be as fast. However,
you have to start somewhere.

For a while, I had a directory entry in a umsdos directory where it
took 2.5 seconds for readdir() to complete on one particular directory
entry. This compared to about 0.3 seconds for the *following*
directory entry. This implies that over two seconds were wasted in
the EMD file on that one particular entry.

[This was a /dev directory where echo * took over a minute to
complete.]

-- 
Raul