Commit Graph

14 Commits

Author SHA1 Message Date
Dave Murphy
1befdfead1 prevent caching off end of partition 2009-06-09 19:42:35 +00:00
Michael Wiedenbauer
980ade67d4 - reverted .last_access handling to use the static counter. Old behaviour - counting up .last_access directly - lead to a heavy performance impact. 2009-06-09 11:39:57 +00:00
Michael Wiedenbauer
5324215493 - if current sector is not in cache the starting sector to read from disc needs to be recalculated to be a multiple of sectorsPerPage 2009-06-08 21:00:42 +00:00
Michael Wiedenbauer
806fc418e0 - cleaned up cache code. reverted access policy to what it was before.
- _FAT_fat_linkFreeClusterCleared must go thru cache aswell.
2009-06-06 16:06:42 +00:00
tantricity
e89b232b5f remove unused code, r18 args fix 2009-05-30 16:22:09 +00:00
tantricity
7262354c49 new write cache, flush dirty pages. fix by rodries. 2009-05-30 06:52:18 +00:00
tantricity
56261df0c7 counter fix 2009-05-20 18:22:26 +00:00
Dave Murphy
206ce78022 add read ahead cache by Rodries 2009-05-17 22:16:35 +00:00
Michael Chisholm
2cc2cc2e39 Moved disc interfaces to appropriate libraries (DLDI to libnds, SD/USB to libogc).
Changed read/write functions to use size_t and seek function to use off_t -- will help on 64 bit platforms.
Partitions no longer specified by fat1:/, fat2:/, etc.
Use "nice" device names. On GBA/NDS the default partition is still fat:/; however on Wii and GC sd:/, usb:/, etc. are used instead.
Added fsync and ftruncate functions.
Mount and unmount no longer startup/shutdown the device, this is the job of the host app.
Mount now accepts a partition start parameter.
Used standard types, eg uint32_t instead of u32.
Archive bit is set when closing/synchronizing a modified file.
Various minor bug fixes.
2008-11-20 05:22:28 +00:00
Dave Murphy
46df48ba21 add libogc port and nitroFS support 2008-05-10 19:35:18 +00:00
Dave Murphy
5b9bfaecf0 commit bushing's endianess fixes 2008-05-01 10:02:19 +00:00
Michael Chisholm
bef33572eb Fixed _FAT_cache_constructor to return NULL on error, not false
Fixed _FAT_cache_flush to return false on error. With thanks to xorloser
2008-05-01 09:31:34 +00:00
Michael Chisholm
eb2b6d1e20 Changed all IO_INTERFACEs to const. M3SD and SCSD drivers no longer delay card detection when it is not inserted. 2006-07-25 10:36:42 +00:00
Michael Chisholm
cc64edfab8 Initial import into devkitpro CVS. 2006-07-14 02:42:37 +00:00