• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html lang="en">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5<meta http-equiv="Content-Style-Type" content="text/css">
6<meta http-equiv="cache-control" content="no-cache">
7<link rel="start" title="Site Top" href="../../">
8<link rel="stylesheet" href="css_e.css" type="text/css" media="screen" title="ELM Default">
9<title>FatFs - Known Problems</title>
10</head>
11<body style="max-width: none;">
12<h2>Updates and Migration Notes</h2>
13<table class="lst4">
14<tr><th>Revision</th><th>Updates</th><th>Migration Notes</th></tr>
15<tr>
16<td>R0.15<br>Nov 6, 2022</td>
17<td>
18Changed user provided synchronization functions in order to completely eliminate the platform dependency from FatFs code.<br>
19Fixed a potential error in <tt>f_mount</tt> when <tt>FF_FS_REENTRANT</tt>.<br>
20Fixed file lock control <tt>FF_FS_LOCK</tt> is not mutal excluded when <tt>FF_FS_REENTRANT && FF_VOLUMES &gt; 1</tt> is true.<br>
21Fixed <tt>f_mkfs</tt> creates broken exFAT volume when the size of volume is <tt>&gt;= 2^32</tt> sectors.<br>
22Fixed string functions cannot write the unicode characters not in BMP when <tt>FF_LFN_UNICODE == 2</tt> (UTF-8).<br>
23Fixed a compatibility issue in identification of GPT header.<br>
24</td>
25<td>
26User provided synchronization functions, <tt>ff_cre_syncobj</tt>, <tt>ff_del_syncobj</tt>, <tt>ff_req_grant</tt> and <tt>ff_rel_grant</tt>, needed when <tt>FF_FS_REENTRANT</tt> are replaced by <tt>ff_mutex_create</tt>, <tt>ff_mutex_delete</tt>, <tt>ff_mutex_take</tt> and <tt>ff_mutex_give</tt> respectively. For examples, see <tt>ffsystem.c</tt>.<br>
27<tt>FF_SYNC_t</tt> is removed from the configuration options.<br>
28</td>
29</tr>
30<tr>
31<td>R0.14b<br>Apr 17, 2021</td>
32<td>
33Made FatFs uses standard library <tt>string.h</tt> for copy, compare and search instead of built-in string functions.<br>
34Added support for long long integer and floating point to <tt>f_printf</tt>. (<tt>FF_STRF_LLI</tt> and <tt>FF_STRF_FP</tt>)<br>
35Made path name parser ignores the terminating separator to allow <tt>"dir/"</tt>.<br>
36Improved the compatibility in Unix style path name feature.<br>
37Fixed the file gets dead-locked when <tt>f_open</tt> failed with certain conditions. (appeared at R0.12a)<br>
38Fixed <tt>f_mkfs</tt> can create wrong exFAT volume due to a timing dependent error. (appeared at R0.12)<br>
39Fixed code page 855 cannot be set by <tt>f_setcp</tt>. (appeared at R0.13)<br>
40Fixed some compiler warnings.<br>
41</td>
42<td>
43From this revision, FatFs depends on <tt>string.h</tt>.<br>
44</td>
45</tr>
46<tr>
47<td>R0.14a<br>Dec 05, 2020</td>
48<td>
49Limited number of recursive calls in <tt>f_findnext</tt> to prevent stack overflow.<br>
50Fixed old floppy disks formatted with MS-DOS 2.x and 3.x cannot be mounted.<br>
51Fixed some compiler warnings.<br>
52</td>
53<td>
54Number of wildcards in the matching pattern in <tt>f_findfirst</tt> is limited to 4.<br>
55</td>
56</tr>
57<tr>
58<td>R0.14<br>Oct 14, 2019</td>
59<td>
60Added support for 64-bit LBA and GUID partition table (<tt>FF_LBA64</tt>)<br>
61Changed some API functions, <tt>f_mkfs</tt> and <tt>f_fdisk</tt>.<br>
62Fixed <tt>f_open</tt> cannot find the file with file name in length of <tt>FF_MAX_LFN</tt> characters.<br>
63Fixed <tt>f_readdir</tt> cannot retrieve long file names in length of <tt>FF_MAX_LFN - 1</tt> characters.<br>
64Fixed <tt>f_readdir</tt> returns file names with wrong case conversion. (appeared at R0.12)<br>
65Fixed <tt>f_mkfs</tt> can fail to create exFAT volume in the second partition. (appeared at R0.12)<br>
66</td>
67<td>
68Usage of <tt>f_mkfs</tt> and <tt>f_fdisk</tt> is changed and some features are added to these functions.<br>
69</td>
70</tr>
71<tr>
72<td>R0.13c<br>Oct 14, 2018</td>
73<td>
74Supported <tt>stdint.h</tt> for C99 and later. (<tt>integer.h</tt> was included in <tt>ff.h</tt>)<br>
75Fixed reading a directory gets infinite loop when the last directory entry is not empty. (appeared at R0.12)<br>
76Fixed creating a sub-directory in the fragmented sub-directory on the exFAT volume collapses FAT chain of the parent directory. (appeared at R0.12)<br>
77Fixed <tt>f_getcwd</tt> cause output buffer overrun when the buffer has a valid drive number. (appeared at R0.13b)<br>
78</td>
79<td>
80From this revision, FatFs depends on <tt>stdint.h</tt> in C99 or later.<br>
81<tt>integer.h</tt> is removed.<br>
82</td>
83</tr>
84<tr>
85<td>R0.13b<br>Apr 07, 2018</td>
86<td>
87Added support for UTF-32 encoding on the API. (<tt>FF_LFN_UNICODE = 3</tt>)<br>
88Added support for Unix style volume prefix. (<tt>FF_STR_VOLUME_ID = 2</tt>)<br>
89Fixed accesing objects in the exFAT root directory beyond the cluster boundary can fail. (appeared at R0.12c)<br>
90Fixed <tt>f_setlabel</tt> does not reject some invalid characters. (appeared at R0.09b)<br>
91</td>
92<td>
93</td>
94</tr>
95<tr>
96<td>R0.13a<br>Oct 14, 2017</td>
97<td>
98Added support for UTF-8 encoding on the API. (<tt>FF_LFN_UNICODE = 2</tt>)<br>
99Added options for file name output buffer. (<tt>FF_LFN_BUF, FF_SFN_BUF</tt>)<br>
100Added dynamic memory allocation option for working buffer of <tt>f_mkfs</tt> and <tt>f_fdisk</tt>.<br>
101Fixed <tt>f_fdisk</tt> and <tt>f_mkfs</tt> create the partition table with wrong CHS parameters. (appeared at R0.09)<br>
102Fixed <tt>f_unlink</tt> can cause lost clusters at fragmented file on the exFAT volume. (appeared at R0.12c)<br>
103Fixed <tt>f_setlabel</tt> rejects some valid characters for exFAT volume. (appeared at R0.12)<br>
104</td>
105<td>
106</td>
107</tr>
108<tr>
109<td>R0.13<br>May 21, 2017</td>
110<td>
111Prefix of configuration item names are changed from <tt>"_"</tt> to <tt>"FF_"</tt>.<br>
112Added <tt>f_setcp</tt>, run-time code page configuration. (<tt>FF_CODE_PAGE = 0</tt>)<br>
113Improved cluster allocation time on stretch a deep buried cluster chain.<br>
114Improved processing time of <tt>f_mkdir</tt> with large cluster size by using <tt>FF_USE_LFN = 3</tt>.<br>
115Improved exFAT <tt>NoFatChain</tt> flag of the fragmented file to be set after it is truncated and got contiguous.<br>
116Fixed archive attribute is left not set when a file on the exFAT volume is renamed. (appeared at R0.12)<br>
117Fixed exFAT FAT entry can be collapsed when write or lseek operation to the existing file is done. (appeared at R0.12c)<br>
118Fixed creating a file can fail when a new cluster allocation to the exFAT directory occures. (appeared at R0.12c)<br>
119</td>
120<td>
121ASCII only configuration, <tt>FF_CODE_PAGE = 1</tt>, is removed. Use <tt>FF_CODE_PAGE = 437</tt> instead.<br>
122</td>
123</tr>
124<tr>
125<td>R0.12c<br>Mar 04, 2017</td>
126<td>
127Improved write throughput at the fragmented file on the exFAT volume.<br>
128Made memory usage for exFAT be able to be reduced as decreasing <tt>_MAX_LFN</tt>.<br>
129Fixed successive <tt>f_getfree</tt> can return wrong count on the FAT12/16 volume. (appeared at R0.12)<br>
130Fixed configuration option <tt>_VOLUMES</tt> cannot be set 10. (appeared at R0.10c)<br>
131</td>
132<td>
133</td>
134</tr>
135<tr>
136<td>R0.12b<br>Sep 4, 2016</td>
137<td>
138Made <tt>f_rename</tt> be able to rename objects with the same name but case.<br>
139Fixed an error in the case conversion teble of code page 866. (<tt>ff.c</tt>)<br>
140Fixed writing data is truncated at the file offset 4GiB on the exFAT volume. (appeared at R0.12)<br>
141Fixed creating a file in the root directory of exFAT volume can fail. (appeared at R0.12)<br>
142Fixed <tt>f_mkfs</tt> creating exFAT volume with too small cluster size can collapse unallocated memory. (appeared at R0.12a)<br>
143Fixed wrong object name can be returned when read directory at Unicode cfg. (appeared at R0.12)<br>
144Fixed large file allocation/removing on the exFAT volume collapses allocation bitmap. (appeared at R0.12)<br>
145Fixed some internal errors in <tt>f_expand</tt> and <tt>f_lseek.</tt> (appeared at R0.12)<br>
146</td>
147<td>
148</td>
149</tr>
150<tr>
151<td>R0.12a<br>Jul 10, 2016</td>
152<td>
153Added support for creating exFAT volume with some changes of <tt>f_mkfs</tt>.<br>
154Added a file open method <tt>FA_OPEN_APPEND</tt>.<br>
155<tt>f_forward</tt> is available regardless of <tt>_FS_TINY</tt>.<br>
156Fixed <tt>f_mkfs</tt> creates broken volume. (appeared at R0.12)<br>
157Fixed wrong memory read in <tt>create_name</tt>. (appeared at R0.12)<br>
158Fixed compilation fails at some configurations, <tt>_USE_FASTSEEK</tt> and <tt>_USE_FORWARD</tt>.<br>
159</td>
160<td>
161Usage of <tt>f_mkfs</tt> is changed.<br>
162</td>
163</tr>
164<tr>
165<td>R0.12<br>Apr 12, 2016</td>
166<td>
167Added support for exFAT file system. (<tt>_FS_EXFAT</tt>)<br>
168Added <tt>f_expand</tt>. (<tt>_USE_EXPAND</tt>)<br>
169Changed some members in <tt>FINFO</tt> and behavior of <tt>f_readdir</tt>.<br>
170Added a configuration option <tt>_USE_CHMOD</tt>.<br>
171Fixed errors in the case conversion teble of Unicode (<tt>cc*.c</tt>).<br>
172</td>
173<td>
174Usage and members of <tt>FINFO</tt> sructure used in <tt>f_readdir</tt> is changed.<br>
175Many members in <tt>FIL</tt> and <tt>DIR</tt> structure are changed.<br>
176To use <tt>f_chmod</tt>, <tt>_USE_CHMOD</tt> needs to be set.<br>
177<tt>_WORD_ACCESS</tt> is removed from the configuration options.<br>
178Dot entries are never appear in <tt>f_reeddir</tt>.<br>
179</td>
180</tr>
181<tr>
182<td>R0.11a<br>Sep 5, 2015</td>
183<td>
184Fixed wrong media change can lead a deadlock at thread-safe configuration.<br>
185Added code page 771, 860, 861, 863, 864, 865 and 869. (<tt>_CODE_PAGE</tt>)<br>
186Fixed errors in the case conversion teble of code page 437 and 850 (<tt>ff.c</tt>).<br>
187Fixed errors in the case conversion teble of Unicode (<tt>cc*.c</tt>).<br>
188</td>
189<td>
190Removed some code pages actually not exist on the standard systems. (<tt>_CODE_PAGE</tt>)<br>
191</td>
192</tr>
193<tr>
194<td>R0.11<br>Feb 9, 2015</td>
195<td>
196Added <tt>f_findfirst</tt> and <tt>f_findnext.</tt> (<tt>_USE_FIND</tt>)<br>
197Fixed <tt>f_unlink</tt> does not remove cluster chain of the file. (appeared at R0.10c)<br>
198Fixed <tt>_FS_NORTC</tt> option does not work properly. (appeared at R0.10c)<br>
199</td>
200<td>
201</td>
202</tr>
203<tr>
204<td>R0.10c<br>Nov 9, 2014</td>
205<td>
206Added a configuration option for the platforms without RTC. (<tt>_FS_NORTC</tt>)<br>
207Fixed volume label created by Mac OS X cannot be retrieved with <tt>f_getlabel</tt>. (appeared at R0.09b)<br>
208Fixed a potential problem of FAT access that can appear on disk error.<br>
209Fixed null pointer dereference on attempting to delete the root direcotry. (appeared at R0.08)<br>
210</td>
211<td>
212</td>
213</tr>
214<tr>
215<td>R0.10b<br>May 19, 2014</td>
216<td>
217Fixed a hard error in the disk I/O layer can collapse the directory entry.<br>
218Fixed LFN entry is not deleted on delete/rename an object with its lossy converted SFN. (appeared at R0.07)<br>
219</td>
220<td>
221</td>
222</tr>
223<tr>
224<td>R0.10a<br>Jan 15, 2014</td>
225<td>
226Added arbitrary strings as drive number in the path name. (<tt>_STR_VOLUME_ID</tt>)<br>
227Added an option for minimum sector size. (<tt>_MIN_SS</tt>)<br>
2282nd argument of <tt>f_rename</tt> can have a drive number and it will be ignored.<br>
229Fixed <tt>f_mount</tt> with forced mount fails when drive number is larger than 0. (appeared at R0.10)<br>
230Fixed <tt>f_close</tt> invalidates the file object without volume lock.<br>
231Fixed volume lock is left acquired after return from <tt>f_closedir</tt>. (appeared at R0.10)<br>
232Fixed creation of a directory entry with LFN fails on too many SFN collisions. (appeared at R0.07)<br>
233</td>
234<td>
235</td>
236</tr>
237<tr>
238<td>R0.10<br>Oct 2, 2013</td>
239<td>
240Added an option for character encoding on the file. (<tt>_STRF_ENCODE</tt>)<br>
241Added f_closedir.<br>
242Added forced full FAT scan option for <tt>f_getfree</tt>. (<tt>_FS_NOFSINFO</tt>)<br>
243Added forced mount option with changes of <tt>f_mount</tt>.<br>
244Improved behavior of volume auto detection.<br>
245Improved write throughput of <tt>f_puts</tt> and <tt>f_printf</tt>.<br>
246Changed argument of <tt>f_chdrive,</tt> <tt>f_mkfs</tt>, <tt>disk_read</tt> and <tt>disk_write</tt>.<br>
247Fixed <tt>f_write</tt> can be truncated when the file size is close to 4 GB.<br>
248Fixed <tt>f_open</tt>, <tt>f_mkdir</tt> and <tt>f_setlabel</tt> can return incorrect result code on error.<br>
249</td>
250<td>
251</td>
252</tr>
253<tr>
254<td>R0.09b<br>Jan 24, 2013</td>
255<td>
256Added <tt>f_getlabel</tt> and <tt>f_setlabel</tt>. (<tt>_USE_LABEL</tt>)<br>
257</td>
258<td>
259</td>
260</tr>
261<tr>
262<td>R0.09a<br>Aug 27, 2012</td>
263<td>
264Fixed assertion failure due to OS/2 EA on FAT12/16 volume.<br>
265Changed file functions reject null object pointer to avoid crash.<br>
266Changed option name <tt>_FS_SHARE</tt> to <tt>_FS_LOCK</tt>.<br>
267</td>
268<td>
269</td>
270</tr>
271<tr>
272<td>R0.09<br>Sep 6, 2011</td>
273<td>
274<tt>f_mkfs</tt> supports multiple partition on a physical drive.<br>
275Added <tt>f_fdisk</tt>. (<tt>_MULTI_PARTITION = 2</tt>)<br>
276</td>
277<td>
278</td>
279</tr>
280<tr>
281<td>R0.08b<br>Jan 15, 2011</td>
282<td>
283Fast seek function is also applied to <tt>f_read</tt> and <tt>f_write</tt>.<br>
284<tt>f_lseek</tt> reports required table size on creating CLMP.<br>
285Extended format syntax of <tt>f_printf</tt>.<br>
286Ignores duplicated directory separators in given path names.<br>
287</td>
288<td>
289</td>
290</tr>
291<tr>
292<td>R0.08a<br>Aug 16, 2010</td>
293<td>
294Added <tt>f_getcwd</tt>. (<tt>_FS_RPATH = 2</tt>)<br>
295Added sector erase function. (<tt>_USE_ERASE</tt>)<br>
296Moved file lock semaphore table from fs object to the bss.<br>
297Fixed <tt>f_mkdir</tt> creates wrong directory on non-LFN cfg when the given name contains <tt>';'</tt>.<br>
298Fixed <tt>f_mkfs</tt> creates wrong FAT32 volume.<br>
299</td>
300<td>
301</td>
302</tr>
303<tr>
304<td>R0.08<br>May 15, 2010</td>
305<td>
306Added an option to <tt>_USE_LFN</tt><br>
307Added support of file lock. (<tt>_FS_SHARE</tt>)<br>
308Added fast seek function. (<tt>_USE_FASTSEEK</tt>)<br>
309Changed a type name on the API, <tt>XCHAR</tt> to <tt>TCHAR</tt>.<br>
310Changed member, <tt>fname</tt>, in the <tt>FILINFO</tt> on Unicode cfg.<br>
311String functions support UTF-8 encoding files on Unicode cfg.<br>
312</td>
313<td>
314</td>
315</tr>
316<tr>
317<td>R0.07e<br>Nov 3, 2009</td>
318<td>
319Separated out configuration options from <tt>ff.h</tt> to <tt>ffconf.h</tt>.<br>
320Added a configuration option, <tt>_LFN_UNICODE</tt>.<br>
321Fixed <tt>f_unlink</tt> fails to remove a sub-dir on <tt>_FS_RPATH</tt>.<br>
322Fixed name matching error on the 13 char boundary.<br>
323Changed <tt>f_readdir</tt> to return the SFN with always upper case on non-LFN cfg.<br>
324</td>
325<td>
326</td>
327</tr>
328<tr>
329<td>R0.07c<br>Jan 21, 2009</td>
330<td>
331Fixed <tt>f_unlink</tt> may return FR_OK on error.<br>
332Fixed wrong cache control in <tt>f_lseek</tt>.<br>
333Added support of relative path.<br>
334Added <tt>f_chdir</tt>.<br>
335Added <tt>f_chdrive</tt>.<br>
336Added proper case conversion to extended characters.<br>
337</td>
338<td>
339</td>
340</tr>
341<tr>
342<td>R0.07a<br>Apr 14, 2009</td>
343<td>
344Separated out OS dependent code on re-entrant configuration.<br>
345Added multiple sector size support.<br>
346</td>
347<td>
348</td>
349</tr>
350<tr>
351<td>R0.07<br>Apr 1, 2009</td>
352<td>
353Merged Tiny-FatFs into FatFs as a buffer configuration option.<br>
354Added support for long file extension.<br>
355Added multiple code page support.<br>
356Added re-entrancy for multitask operation.<br>
357Added auto cluster size selection to <tt>f_mkfs</tt>.<br>
358Added rewind option to <tt>f_readdir</tt>.<br>
359Changed result code of critical errors.<br>
360Renamed string functions to avoid name collision.<br>
361</td>
362<td>
363</td>
364</tr>
365<tr>
366<td>R0.06<br>Apr 1, 2008</td>
367<td>
368Added <tt>f_forward</tt>. (Tiny-FatFs)<br>
369Added string functions: <tt>f_gets</tt>, <tt>f_putc</tt>, <tt>f_puts</tt> and <tt>f_printf</tt>.<br>
370Improved performance of <tt>f_lseek</tt> on moving to the same or following cluster.<br>
371</td>
372<td>
373</td>
374</tr>
375<tr>
376<td>R0.05a<br>Feb 3, 2008</td>
377<td>
378Added <tt>f_truncate</tt>.<br>
379Added <tt>f_utime</tt>.<br>
380Fixed off by one error at FAT sub-type determination.<br>
381Fixed btr in <tt>f_read</tt> can be mistruncated.<br>
382Fixed cached sector is left not flushed when create and close without write.<br>
383</td>
384<td>
385</td>
386</tr>
387<tr>
388<td>R0.05<br>Aug 26, 2007</td>
389<td>
390Changed arguments of <tt>f_read</tt>, <tt>f_write</tt>.<br>
391Changed arguments of <tt>f_mkfs</tt>. (FatFs)<br>
392Fixed <tt>f_mkfs</tt> on FAT32 creates incorrect FSInfo. (FatFs)<br>
393Fixed <tt>f_mkdir</tt> on FAT32 creates broken directory. (FatFs)<br>
394</td>
395<td>
396</td>
397</tr>
398<tr>
399<td>R0.04b<br>May 5, 2007</td>
400<td>
401Added <tt>_USE_NTFLAG</tt> option.<br>
402Added support for FSInfo in FAT32 volume.<br>
403Fixed some problems corresponds to FAT32. (Tiny-FatFs)<br>
404Fixed DBCS name can result <tt>FR_INVALID_NAME</tt>.<br>
405Fixed short seek (<tt>&lt;= csize</tt>) collapses the file object.<br>
406</td>
407<td>
408</td>
409</tr>
410<tr>
411<td>R0.04a<br>Apr 1, 2007</td>
412<td>
413Supported multiple partitions on a plysical drive. (FatFs)<br>
414Added minimization level 3.<br>
415Added a capability of extending file size to <tt>f_lseek</tt>.<br>
416Fixed an endian sensitive code in <tt>f_mkfs</tt>. (FatFs)<br>
417Fixed a problem corresponds to FAT32 support. (Tiny-FatFs)<br>
418</td>
419<td>
420</td>
421</tr>
422<tr>
423<td>R0.04<br>Feb 4, 2007</td>
424<td>
425Supported multiple drive system. (FatFs)<br>
426Changed some APIs for multiple drive system.<br>
427Added <tt>f_mkfs</tt>. (FatFs)<br>
428Added <tt>_USE_FAT32</tt> option. (Tiny-FatFs)<br>
429</td>
430<td>
431</td>
432</tr>
433<tr>
434<td>R0.03a<br>Dec 11, 2006</td>
435<td>
436Improved cluster scan algolithm to write files fast.<br>
437Fixed <tt>f_mkdir</tt> creates broken directory on FAT32.<br>
438</td>
439<td>
440</td>
441</tr>
442<tr>
443<td>R0.03<br>Sep 22, 2006</td>
444<td>
445Added <tt>f_rename</tt>.
446Changed option <tt>_FS_MINIMUM</tt> to <tt>_FS_MINIMIZE</tt>.<br>
447</td>
448<td>
449</td>
450</tr>
451<tr>
452<td>R0.02a<br>Jun 10, 2006</td>
453<td>
454Added a configuration option <tt>_FS_MINIMUM</tt>.<br>
455</td>
456<td>
457</td>
458</tr>
459<tr>
460<td>R0.02<br>Jun 01, 2006</td>
461<td>
462Added FAT12.<br>
463Removed unbuffered mode.<br>
464Fixed a problem on small (<tt>&lt;32M</tt>) patition.<br>
465</td>
466<td>
467</td>
468</tr>
469<tr>
470<td>R0.01<br>Apr 29, 2006</td>
471<td>
472First release.<br>
473</td>
474<td>
475</td>
476</tr>
477</table>
478</body>
479</html>
480