3 Jan 2005 08:59
amiconn: firmware/drivers fat.c,1.95,1.96
<cvs <at> labb.contactor.se>
2005-01-03 07:59:51 GMT
2005-01-03 07:59:51 GMT
Update of /cvsroot/rockbox/firmware/drivers
In directory labb.contactor.se:/tmp/cvs-serv12329/firmware/drivers
Modified Files:
fat.c
Log Message:
Correct handling of FAT16 root directory when it does not start on a pseudo cluster boundary. Fixed some
places where the cluster number can become negative. Significant code cleanup.
Index: fat.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/drivers/fat.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- fat.c 28 Dec 2004 22:35:10 -0000 1.95
+++ fat.c 3 Jan 2005 07:59:48 -0000 1.96
<at> <at> -217,7 +217,8 <at> <at>
int bpb_rootentcnt; /* Number of dir entries in the root */
/* internals for FAT16 support */
bool is_fat16; /* true if we mounted a FAT16 partition, false if FAT32 */
- unsigned int rootdirsectors; /* fixed # of sectors occupied by root dir */
+ unsigned int rootdiroffset; /* sector offset of root dir relative to start
+ * of first pseudo cluster */
#endif /* #ifdef HAVE_FAT16SUPPORT */
#ifdef HAVE_MULTIVOLUME
int drive; /* on which physical device is this located */
<at> <at> -229,7 +230,6 <at> <at>
static int update_fsinfo(IF_MV_NONVOID(struct bpb* fat_bpb));
(Continue reading)
RSS Feed