lkml.org 
[lkml]   [1996]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Unnecessary seeks on mounted floppies?
From
> > to track 0 when reading from mounted floppies?
>
> One reason is if your floppy drive is crap or poorly aligned. The head gets
> tracked back to track 0 to find out where its drifted to.

In the meantime, I've found the real reason (no, my drive is perfectly OK :-)

The DOS-fs does no read-ahead on the FAT. So whenever you read a cluster of
a file that's located in a yet unread sector of the FAT, the head has to
move to track 0 to read the next part of the FAT.

I added a really ugly hack that always causes the whole FAT to be read on
the first access (if the FAT is small enough, i.e. on floppies). This keeps
the whole FAT in the buffer cache and now I can read a complete disk
without any unnecessary seeks. But this is definitely not the right
solution, because other FSs (ext2, for example) seem to have similar
problems.

Martin
--
/* Martin Buck E-Mail: martin-2.buck@student.uni-ulm.de */
/* Student of electrical engineering WWW: http://www.uni-ulm.de/~s_mbuck1/ */
/* University of Ulm, Germany Snail-Mail: Paukengasse 2, 89077 Ulm, Germany */
#include <disclaimer.h> /* PGP Key available MIME-Mail welcome */


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