lkml.org 
[lkml]   [2004]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: USB Memory Stick issues (After using it in Wyse Terminal (WindowsCE.NET))
On Mon, Jun 28, 2004 at 12:40:43PM +0000, freaky@bananateam.nl wrote:

> 00000000 eb fe 90 00 00 00 00 00 00 00 00 00 02 08 01 00 |................|
> 00000010 01 00 01 00 00 f0 fa 00 00 00 00 00 00 00 00 00 |................|
> 00000020 00 d0 07 00 00 00 29 1e 00 df 07 50 41 52 54 30 |......)....PART0|
> 00000030 30 20 20 20 20 20 46 41 54 31 36 20 20 20 00 00 |0 FAT16 ..|
> 00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

Ah, yes, I see. Please try the below patch.
(Cut & pasted - tabs will have become spaces.)

Andries


% diff -u -U6 /linux/2.6/linux-2.6.7/linux/fs/fat/inode.c inode.c
--- /linux/2.6/linux-2.6.7/linux/fs/fat/inode.c 2004-06-24 17:11:20
+++ inode.c 2004-06-28 22:03:25
@@ -827,24 +827,26 @@
if (!b->fats) {
if (!silent)
printk(KERN_ERR "FAT: bogus number of FAT structure\n");
brelse(bh);
goto out_invalid;
}
+#if 0
if (!b->secs_track) {
if (!silent)
printk(KERN_ERR "FAT: bogus sectors-per-track value\n");
brelse(bh);
goto out_invalid;
}
if (!b->heads) {
if (!silent)
printk(KERN_ERR "FAT: bogus number-of-heads value\n");
brelse(bh);
goto out_invalid;
}
+#endif
media = b->media;
if (!FAT_VALID_MEDIA(media)) {
if (!silent)
printk(KERN_ERR "FAT: invalid media value (0x%02x)\n",
media);
brelse(bh);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:04    [W:1.023 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site