From: "Randy.Dunlap" <rddunlap@osdl.org>
To: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: "Randy.Dunlap" <randy.dunlap@verizon.net>,
<linux-fsdevel@vger.kernel.org>, <chaffee@cs.berkeley.edu>
Subject: Re: FAT-filesystem EOF marker problem
Date: Sun, 22 Sep 2002 11:53:20 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.33L2.0209221151100.19920-100000@dragon.pdx.osdl.net> (raw)
In-Reply-To: <87adm9anx8.fsf@devron.myhome.or.jp>
On Mon, 23 Sep 2002, OGAWA Hirofumi wrote:
| "Randy.Dunlap" <randy.dunlap@verizon.net> writes:
|
| > Hi,
| >
| > On 2002-Sept-15 a Linux-USB user reported a problem when using
| > a file written by Linux to a CompactFlash (CF) card in an MP3
| > player. Linux and Windows can still read the CF card correctly,
| > but the MP3 player cannot. I have successfully reproduced this
| > problem.
| >
| > Initial problem report and thread begin at:
| > http://marc.theaimsgroup.com/?l=linux-usb-users&m=103210507227709&w=2
| >
| > I found several Boot Record/BIOS Parameter Block differences,
| > one FAT cluster link difference (EOF marker), and several
| > directory entry differences. I believe that I have proved
| > that the problem lies in the FAT EOF marker difference:
| >
| > Windows (ME version at least) writes 0xfff for a FAT12 EOF marker.
| > mtools writes 0xfff for a FAT12 EOF marker.
| > Linux (v)fat filesystem writes 0xff8 for a FAT12 EOF marker.
| > (Yes, I know that 0xff8 is a valid FAT12 EOF marker.)
| >
| > This causes some cheap/crappy MP3 player(s) firmware to get lost...
| > yeah, it's a problem with the MP3 player(s).
| > And Linux users can get around the problem by using mtools
| > instead of a Linux filesystem, but sometimes using a filesystem
| > is just preferred.
| >
| > Anyone have any suggestions for other workarounds or patches?
| >
| > I would prefer to see something like (a) Linux uses 0xfff for
| > FAT(12) EOF [and sign-extended for FAT16 and FAT32], or
| > (b) Linux uses a mount option to indicate the EOF marker value,
| > or (c) Linux dynamically checks what EOF marker value is in
| > the FAT already, and continues to use that value [and continues
| > to use 0xff8 as its default value].
|
| I vote to (a). It should be very easy for 2.5.x. And I think that you
| explained why we should use standard EOF mark.
|
| So, what do you think of trying (a), until the reason we need values
| other than standard EOF(fff/ffff/fffffff) is found?
Sure, that sounds fine to me. I expect it to be fairly safe.
And if we did (c), we should use 0xfff instead of 0xff8 as the
default now that I've had more time to think about it.
--
~Randy
next prev parent reply other threads:[~2002-09-22 18:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-22 5:30 FAT-filesystem EOF marker problem Randy.Dunlap
2002-09-22 18:18 ` OGAWA Hirofumi
2002-09-22 18:53 ` Randy.Dunlap [this message]
2002-09-23 3:18 ` Andries Brouwer
2002-09-23 6:24 ` Randy.Dunlap
2002-09-23 7:59 ` OGAWA Hirofumi
2002-09-23 18:08 ` Randy.Dunlap
2002-09-24 19:36 ` H. Peter Anvin
2002-09-24 21:36 ` Randy.Dunlap
2002-09-24 19:34 ` H. Peter Anvin
2002-09-24 21:08 ` Andries Brouwer
2002-09-24 19:27 ` H. Peter Anvin
2002-09-24 19:40 ` H. Peter Anvin
2002-09-24 21:11 ` Andries Brouwer
2002-09-24 21:40 ` H. Peter Anvin
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=Pine.LNX.4.33L2.0209221151100.19920-100000@dragon.pdx.osdl.net \
--to=rddunlap@osdl.org \
--cc=chaffee@cs.berkeley.edu \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-fsdevel@vger.kernel.org \
--cc=randy.dunlap@verizon.net \
/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;
as well as URLs for NNTP newsgroup(s).