This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
fatfs root dir fix
- From: Savin Zlobec <savin at elatec dot si>
- To: Patches eCos <ecos-patches at sources dot redhat dot com>
- Date: Tue, 18 Jan 2005 15:15:26 +0100
- Subject: fatfs root dir fix
Fix for fatfs root directory size from Stephane Royo.
savin
Index: fs/fat/current/src/fatfs_supp.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/fat/current/src/fatfs_supp.c,v
retrieving revision 1.3
diff -u -5 -r1.3 fatfs_supp.c
--- fs/fat/current/src/fatfs_supp.c 22 Oct 2004 14:10:23 -0000 1.3
+++ fs/fat/current/src/fatfs_supp.c 18 Jan 2005 10:26:12 -0000
@@ -1489,11 +1489,11 @@
while (true)
{
// FAT12/16 root dir check
if (0 == pos->cluster)
{
- if (pos->cluster_pos >= disk->fat_root_dir_nents)
+ if (pos->cluster_pos >= disk->fat_root_dir_size)
err = EEOF;
}
else
{
// Change cluster if needed
Index: fs/fat/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/fat/current/ChangeLog,v
retrieving revision 1.8
diff -u -5 -r1.8 ChangeLog
--- fs/fat/current/ChangeLog 13 Dec 2004 20:33:44 -0000 1.8
+++ fs/fat/current/ChangeLog 18 Jan 2005 10:26:12 -0000
@@ -1,5 +1,11 @@
+2005-01-18 Savin Zlobec <savin@elatec.si>
+
+ * src/fatfs_supp.c:
+ Fixed FAT12/16 root dir size checking in read_next_raw_dentry -
+ reported by Stephane Royo.
+
2004-12-13 John Dallaway <jld@ecoscentric.com>
* tests/fileio1.c: Rename to fatfs1.c. eCos test names should be
unique.
* cdl/fatfs.cdl: Build the renamed test.