patch-2.1.17 linux/include/linux/msdos_fs.h

Next file: linux/include/linux/netdevice.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.16/linux/include/linux/msdos_fs.h linux/include/linux/msdos_fs.h
@@ -7,6 +7,7 @@
 #include <linux/fs.h>
 #include <linux/stat.h>
 #include <linux/fd.h>
+#include <linux/config.h>
 
 #define MSDOS_ROOT_INO  1 /* == MINIX_ROOT_INO */
 #define SECTOR_SIZE     512 /* sector size (bytes) */
@@ -68,6 +69,14 @@
 #define MSDOS_DOTDOT "..         " /* "..", padded to MSDOS_NAME chars */
 
 #define MSDOS_FAT12 4078 /* maximum number of clusters in a 12 bit FAT */
+
+#ifdef CONFIG_ATARI
+#define EOF_FAT12 0xFFF		/* Atari GEMDOS fs uses a different EOF */
+#define EOF_FAT16 0xFFFF
+#else
+#define EOF_FAT12 0xFF8		/* standard EOF */
+#define EOF_FAT16 0xFFF8
+#endif
 
 /*
  * Inode flags

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov