From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-fsdevel@vger.kernel.org
Subject: Re: FAT-filesystem EOF marker problem
Date: 24 Sep 2002 12:27:28 -0700 [thread overview]
Message-ID: <amqeb0$5s2$1@cesium.transmeta.com> (raw)
In-Reply-To: 3D8D556B.4D3BF8B7@verizon.net
Followup to: <3D8D556B.4D3BF8B7@verizon.net>
By author: "Randy.Dunlap" <randy.dunlap@verizon.net>
In newsgroup: linux.dev.fs.devel
>
> 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.)
>
Valid, perhaps (the official specification is fuzzy on that subject to
say the least), but 0xfff is the standard one and what DOS uses.
The official spec states:
Note that the cluster number whose cluster entry in the FAT contains
the EOC mark is allocated to the file and is also the last cluster
allocated to the file. Microsoft operating system FAT drivers use the
EOC value 0x0FFF for FAT12, 0xFFFF for FAT16, and 0x0FFFFFFF for FAT32
when they set the contents of a cluster to the EOC mark. There are
various disk utilities for Microsoft operating systems that use a
different value, however.
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <amsp@zytor.com>
next prev parent reply other threads:[~2002-09-24 19:27 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
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 [this message]
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='amqeb0$5s2$1@cesium.transmeta.com' \
--to=hpa@zytor.com \
--cc=linux-fsdevel@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;
as well as URLs for NNTP newsgroup(s).