From a8137252a5a43a1a20a62c0f81b237a8ccf12b90 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 22 Mar 2010 10:35:25 +0000 Subject: 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 --- firmware/export/fat.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'firmware/export') 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 -- cgit v1.2.3