diff --git a/fs/fat/os_adapt/fatfs.c b/fs/fat/os_adapt/fatfs.c index 46843f2f..ee39d653 100644 --- a/fs/fat/os_adapt/fatfs.c +++ b/fs/fat/os_adapt/fatfs.c @@ -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;