From: Andries Brouwer <aebr@win.tue.nl>
To: freaky@bananateam.nl
Cc: Andries Brouwer <aeb@cwi.nl>, linux-kernel@vger.kernel.org
Subject: Re: USB Memory Stick issues (After using it in Wyse Terminal (WindowsCE.NET))
Date: Mon, 28 Jun 2004 22:01:34 +0200 [thread overview]
Message-ID: <20040628200134.GA3096@pclin040.win.tue.nl> (raw)
In-Reply-To: <20040628123937.3370013B7E9@kweetal.tue.nl>
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);
next parent reply other threads:[~2004-06-28 20:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040628123937.3370013B7E9@kweetal.tue.nl>
2004-06-28 20:01 ` Andries Brouwer [this message]
2004-07-02 13:49 Ferry van Steen
2004-07-02 17:12 ` Andries Brouwer
-- strict thread matches above, loose matches on Subject: below --
2004-06-28 8:44 freaky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040628200134.GA3096@pclin040.win.tue.nl \
--to=aebr@win.tue.nl \
--cc=aeb@cwi.nl \
--cc=freaky@bananateam.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®