fix: fix the inappropriate errno in FatFs
The errno of unrecognized fat filesystem changes from ENOENT to ENOTSUP. Close #I3O8IF
This commit is contained in:
@@ -93,10 +93,13 @@ int fatfs_2_vfs(int result)
|
||||
|
||||
case FR_NO_FILE:
|
||||
case FR_NO_PATH:
|
||||
case FR_NO_FILESYSTEM:
|
||||
status = ENOENT;
|
||||
break;
|
||||
|
||||
case FR_NO_FILESYSTEM:
|
||||
status = ENOTSUP;
|
||||
break;
|
||||
|
||||
case FR_INVALID_NAME:
|
||||
status = EINVAL;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user