summaryrefslogtreecommitdiff
path: root/firmware/export/fat.h
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/fat.h
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/fat.h')
-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
85 unsigned int entrycount; 85 unsigned int entrycount;
86 long sector; 86 long sector;
87 struct fat_file file; 87 struct fat_file file;
88 unsigned char sectorcache[3][SECTOR_SIZE]; 88 unsigned char sectorcache[SECTOR_SIZE];
89 /* There are 2-bytes per characters. We don't want to bother too much, as LFN entries are
90 * at much 255 characters longs, that's at most 20 LFN entries. Each entry hold at most
91 * 13 characters, that a total of 260 characters. So we keep a buffer of that size.
92 * Keep coherent with fat.c code. */
93 unsigned char longname[260 * 2];
89}; 94};
90 95
91#ifdef HAVE_HOTSWAP 96#ifdef HAVE_HOTSWAP