lkml.org 
[lkml]   [1996]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ext2 in a dos file/partition
   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



\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.031 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site