Skip to content

Commit

Permalink
- Update FatFs to R0.15a.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Nov 22, 2024
1 parent e55a0e5 commit e72aec8
Show file tree
Hide file tree
Showing 5 changed files with 459 additions and 433 deletions.
18 changes: 9 additions & 9 deletions cube/swiss/source/devices/fat/deviceHandler-FAT.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,24 +480,24 @@ u32 deviceHandler_FAT_emulated_ata() {

char* deviceHandler_FAT_status(file_handle* file) {
switch(file->status) {
case FR_OK: /* (0) Succeeded */
case FR_OK: /* (0) Function succeeded */
return NULL;
case FR_DISK_ERR:
return "Error occurred in the low level disk I/O layer";
return "A hard error occurred in the low level disk I/O layer";
case FR_INT_ERR:
return "Assertion failed";
case FR_NOT_READY:
return "The physical drive cannot work";
return "The physical drive does not work";
case FR_NO_FILE:
return "Could not find the file";
case FR_NO_PATH:
return "Could not find the path";
case FR_INVALID_NAME:
return "The path name format is invalid";
case FR_DENIED:
return "Access denied due to prohibited access or directory full";
return "Access denied due to a prohibited access or directory full";
case FR_EXIST:
return "Access denied due to prohibited access";
return "Access denied due to a prohibited access";
case FR_INVALID_OBJECT:
return "The file/directory object is invalid";
case FR_WRITE_PROTECTED:
Expand All @@ -507,15 +507,15 @@ char* deviceHandler_FAT_status(file_handle* file) {
case FR_NOT_ENABLED:
return "The volume has no work area";
case FR_NO_FILESYSTEM:
return "There is no valid FAT volume";
return "Could not find a valid FAT volume";
case FR_MKFS_ABORTED:
return "The f_mkfs() aborted due to any problem";
return "The f_mkfs function aborted due to some problem";
case FR_TIMEOUT:
return "Could not get a grant to access the volume within defined period";
return "Could not take control of the volume within defined period";
case FR_LOCKED:
return "The operation is rejected according to the file sharing policy";
case FR_NOT_ENOUGH_CORE:
return "LFN working buffer could not be allocated";
return "LFN working buffer could not be allocated or given buffer is insufficient in size";
case FR_TOO_MANY_OPEN_FILES:
return "Number of open files > FF_FS_LOCK";
case FR_INVALID_PARAMETER:
Expand Down
8 changes: 8 additions & 0 deletions cube/swiss/source/fatfs/00history.txt
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,11 @@ R0.15 (November 6, 2022)
Fixed string functions cannot write the unicode characters not in BMP when FF_LFN_UNICODE == 2 (UTF-8).
Fixed a compatibility issue in identification of GPT header.



R0.15a (November 22, 2024)
Fixed a complie error when FF_FS_LOCK != 0.
Fixed a potential issue when work FatFs concurrency with FF_FS_REENTRANT, FF_VOLUMES >= 2 and FF_FS_LOCK > 0.
Made f_setlabel() accept a volume label in Unix style volume ID when FF_STR_VOLUME_ID == 2.
Made FatFs update PercInUse field in exFAT VBR. (A preceding f_getfree() is needed for the accuracy)

Loading

0 comments on commit e72aec8

Please sign in to comment.