From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] use fff/ffff/fffffff instead of ff8/fff8/ffffff8 for EOF of FAT
Date: Mon, 30 Sep 2002 04:51:35 +0900 [thread overview]
Message-ID: <87vg4ok20o.fsf@devron.myhome.or.jp> (raw)
Hi,
For example on FAT12, the current FAT driver recognize 0xff8-0xfff as
EOF, and it writes in 0xff8 as EOF. This is right behavior. However,
the firmware of some MP3-Players recognize only 0xfff(standard EOF
which Micorsoft uses) as EOF.
So, we write 0xfff instead of 0xff8 as EOF, until the reason we need
values other than standard EOF is found.
[Randy Dunlap, I appreciate your help.]
Please apply.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
--- linux-2.5/include/linux/msdos_fs.h~ 2002-09-29 16:46:46.000000000 +0900
+++ linux-2.5/include/linux/msdos_fs.h 2002-09-29 16:47:04.000000000 +0900
@@ -68,9 +68,9 @@
MSDOS_SB(s)->fat_bits == 16 ? BAD_FAT16 : BAD_FAT12)
/* standard EOF */
-#define EOF_FAT12 0xFF8
-#define EOF_FAT16 0xFFF8
-#define EOF_FAT32 0xFFFFFF8
+#define EOF_FAT12 0xFFF
+#define EOF_FAT16 0xFFFF
+#define EOF_FAT32 0xFFFFFFF
#define EOF_FAT(s) (MSDOS_SB(s)->fat_bits == 32 ? EOF_FAT32 : \
MSDOS_SB(s)->fat_bits == 16 ? EOF_FAT16 : EOF_FAT12)
reply other threads:[~2002-09-29 19:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87vg4ok20o.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--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®