linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FAT statfs loop abort on read-error
@ 2003-07-04 11:57 Sancho Dauskardt
  2003-07-06 17:24 ` Randy.Dunlap
  0 siblings, 1 reply; 12+ messages in thread
From: Sancho Dauskardt @ 2003-07-04 11:57 UTC (permalink / raw)
  To: linux-kernel

Hi all,

  i've written to the current FAT maintainer (Gordon Chaffee) about this, 
but he's no longer active, so:

While working in the usb-sotrage area (mostly with removeable media, eg. 
CompactFlash in USB-Readers), i've come across a litte odd behaviour:

  when calling statfs on a volume that has been removed (without umount) 
fat_statfs() will attempt to read all sectors of the fat table quite a few 
times (depending on the fat type, eg. FAT16 --> 256 times).

eg:
1. mount /dev/sda1 /mnt/cf
2. remove card
3. df

on my system, for a 16 MB CompactFlash formated with FAT-16 this takes 47 
seconds.

Possible solution:
1. let default_fat_access return something like -2 on 'can't read' error.
2. Abort stafs loop on error.
3. return -EIO

This would break mode fat_access calls. I could make a patch, but I don't 
know what's going on with those cvf extensions (which seem to replace 
fat_access). Is dmsdos dead / can we ignore it ?
Somewhere in the list archives, I found comments about the cvf stuff being 
completely removed ?


Thanks,
- sda


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-09-12 17:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-04 11:57 FAT statfs loop abort on read-error Sancho Dauskardt
2003-07-06 17:24 ` Randy.Dunlap
2003-07-07 15:54   ` OGAWA Hirofumi
2003-07-07 16:24     ` Christoph Hellwig
2003-07-08 12:18       ` OGAWA Hirofumi
2003-07-08 12:33         ` Christoph Hellwig
2003-07-08 14:56           ` OGAWA Hirofumi
2003-07-07 16:38     ` Jeff Garzik
2003-07-08 12:29     ` Sancho Dauskardt
2003-07-08 14:46       ` OGAWA Hirofumi
2003-09-11 20:47         ` Sancho Dauskardt
2003-09-12 17:12           ` OGAWA Hirofumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).