tantricity
7f77159f6a
fix volume label check
2009-10-21 22:06:27 +00:00
tantricity
a8ed97403b
added fatGetVolumeLabel (rodries)
2009-10-17 20:29:48 +00:00
tantricity
9f7c3edc44
correct mixed line endings
2009-10-17 18:59:17 +00:00
tantricity
3b6561d4ca
do not shut down the interface on unmount. other partitons (fat, ntfs, etc) may still be mounted on the device!
2009-10-16 21:38:51 +00:00
Dave Murphy
bf2d7d1130
bypass cache fill on write
2009-10-07 19:54:16 +00:00
Dave Murphy
b7dcf2ce33
fix cluster over allocation, skip cluster alignment write if already aligned
2009-10-07 19:48:51 +00:00
Dave Murphy
18d059aaec
don't limit sectors on DS
2009-10-07 19:46:09 +00:00
Dave Murphy
6cb8909dc8
correct typo
2009-10-06 20:27:38 +00:00
tantricity
d09577c51a
find the first valid fat partition (rodries)
2009-06-30 08:01:04 +00:00
tantricity
8ad45f1556
clean
2009-06-30 07:54:49 +00:00
tantricity
38528ce18f
correct line endings
2009-06-30 07:48:29 +00:00
Dave Murphy
aa7a8929ee
removed commented test code
2009-06-11 00:48:34 +00:00
Dave Murphy
488d832012
make LFN tables static
2009-06-11 00:47:38 +00:00
Dave Murphy
1befdfead1
prevent caching off end of partition
2009-06-09 19:42:35 +00:00
Dave Murphy
eafce2e122
.. in subdir of root always links to cluster 0
2009-06-09 18:22:51 +00:00
Dave Murphy
76a9624d2e
only sync if file open for writing
2009-06-09 18:20:22 +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
tantricity
245ac2fee5
change partition->disc to partition->cache (from rodries)
2009-06-06 22:54:40 +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
Dave Murphy
22f3dea64f
short aliases aren't multibyte
...
zero terminate generated alias
2009-06-02 13:40:14 +00:00
tantricity
e89b232b5f
remove unused code, r18 args fix
2009-05-30 16:22:09 +00:00
Dave Murphy
af94077a7a
move device startup to fatMount
...
shut device down in fatUnmount
2009-05-30 15:54:52 +00:00
tantricity
7262354c49
new write cache, flush dirty pages. fix by rodries.
2009-05-30 06:52:18 +00:00
tantricity
7d8f5f3194
sync written data to disk on f_write
2009-05-28 17:50:36 +00:00
tantricity
56261df0c7
counter fix
2009-05-20 18:22:26 +00:00
tantricity
1c6db0ae1b
remove unnecessary function
2009-05-20 18:12:27 +00:00
Dave Murphy
206ce78022
add read ahead cache by Rodries
2009-05-17 22:16:35 +00:00
Dave Murphy
527a26f299
reinstate memcard drivers for wii
2009-05-17 20:40:15 +00:00
tantricity
fcb840cd66
remove trailing spaces
2009-05-17 20:19:56 +00:00
Dave Murphy
36b712eb75
correct year in _FAT_filetime_to_time_t
2009-05-01 07:57:13 +00:00
Dave Murphy
22f264e5fd
set access and modify times on dir creation
2009-05-01 07:56:08 +00:00
Dave Murphy
52def810fc
patch applied from https://sourceforge.net/tracker/?func=detail&aid=2721592&group_id=114505&atid=668551
2009-05-01 07:37:36 +00:00
Dave Murphy
2266f93113
applied patch http://sourceforge.net/tracker2/?func=detail&aid=1983783&group_id=114505&atid=668553
2009-03-13 08:34:32 +00:00
Michael Chisholm
18e980f050
Add missing unlocks to _FAT_fread_r, thanks to dhewg
2008-12-23 12:58:17 +00:00
Michael Chisholm
145e2cc9d3
Truncated files are modified upon opening
2008-12-13 03:14:54 +00:00
Michael Chisholm
2a239bcd2b
Remove left-over debugging code
2008-12-13 02:18:40 +00:00
Dave Murphy
4d5a03f03c
rearrange structs in size order, initialise partition open file list
2008-12-10 14:26:58 +00:00
Michael Chisholm
d7e584d6e5
Removed memcard drivers for Wii
2008-12-10 08:22:35 +00:00
Michael Chisholm
aa0d8773da
Removed superfluous debug messages
2008-12-01 23:57:00 +00:00
Dave Murphy
71b1b585b8
ifdef debug code
2008-12-01 18:52:22 +00:00
Michael Chisholm
198df1272d
Reload partition boot sector when sector 0 is an MBR
2008-11-30 07:12:08 +00:00
Michael Chisholm
94c4eac0cb
Read/write contigious clusters in one operation to improve speed.
2008-11-22 13:37:16 +00:00
Michael Wiedenbauer
c0c2a463f6
prepended __ to the io_x exports
2008-11-20 14:18:42 +00:00
Michael Chisholm
9501328dca
Added disc.c -- wrapper for DISC_INTERFACEs.
2008-11-20 05:32:59 +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
841c1a692c
files moved to libogc
2008-11-14 16:47:24 +00:00
Michael Chisholm
03bed3a1bd
Only set append position when file is opened for append, as suggested by rodries. Improves open speed for large files.
2008-09-12 11:18:09 +00:00
Michael Chisholm
d72dcb0384
Fixed unlink not freeing cluster chains
2008-09-11 08:54:23 +00:00
Michael Chisholm
bfb4d60d1f
Don't read high 16 bits of start cluster from a directory entry on non-FAT32 partititions, in case it contains non-zero data
2008-09-08 08:28:17 +00:00