summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2010-03-22 10:35:25 +0000
committerAmaury Pouly <pamaury@rockbox.org>2010-03-22 10:35:25 +0000
commita8137252a5a43a1a20a62c0f81b237a8ccf12b90 (patch)
tree99dc8dea4e8a80e869874d04114681078855e7d3 /firmware/export
parent7a3822c8b03a5438a1bcfd6e38c0e6860dda3348 (diff)
downloadrockbox-a8137252a5a43a1a20a62c0f81b237a8ccf12b90.tar.gz
rockbox-a8137252a5a43a1a20a62c0f81b237a8ccf12b90.zip
FS#11118: reduce the number of cached sector in FAT code because some are useless after a rewrite of LFN entries handling. Also makes LFN handling more robust.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25290 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/fat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/export/fat.h b/firmware/export/fat.h
index 638a659f7a..5df5dc4b91 100644
--- a/firmware/export/fat.h
+++ b/firmware/export/fat.h
@@ -85,7 +85,12 @@ struct fat_dir
unsigned int entrycount;
long sector;
struct fat_file file;
- unsigned char sectorcache[3][SECTOR_SIZE];
+ unsigned char sectorcache[SECTOR_SIZE];
+ /* There are 2-bytes per characters. We don't want to bother too much, as LFN entries are
+ * at much 255 characters longs, that's at most 20 LFN entries. Each entry hold at most
+ * 13 characters, that a total of 260 characters. So we keep a buffer of that size.
+ * Keep coherent with fat.c code. */
+ unsigned char longname[260 * 2];
};
#ifdef HAVE_HOTSWAP