diff options
| author | Hirofumi Ogawa <hirofumi@mail.parknet.co.jp> | 2002-09-29 04:01:29 -0700 |
|---|---|---|
| committer | Wim Van Sebroeck <wim@iguana.be> | 2002-09-29 04:01:29 -0700 |
| commit | a22b9070019058622790c8a5629da7467c29c688 (patch) | |
| tree | 537ed8a305e310ceb4a20b848f0858cf39a71b32 /include/linux | |
| parent | 20ab1b0481a918a0a186fa6e77b81aa3b880cfdb (diff) | |
[PATCH] use fff/ffff/fffffff instead of ff8/fff8/ffffff8 for EOF of FAT
On FAT12, the current FAT driver recognizes 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.]
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/msdos_fs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/msdos_fs.h b/include/linux/msdos_fs.h index 75d86d869771..2ca3a3abce00 100644 --- a/include/linux/msdos_fs.h +++ b/include/linux/msdos_fs.h @@ -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) |
