硬汉嵌入式论坛

 找回密码
 立即注册
查看: 2819|回复: 1
收起左侧

[RL-FlashFS] finit返回值的问题

[复制链接]

10

主题

11

回帖

41

积分

新手上路

积分
41
发表于 2020-8-5 09:26:07 | 显示全部楼层 |阅读模式
例程中返回结果提示:
/* FlashFs API的返回值 */
static const char * ReVal_Table[]=
{
        "0:成功",                                                       
        "1:IO错误,I/O驱动初始化失败,或者没有存储设备,或者设备初始化失败",
        "2:卷错误,挂载失败,对于FAT文件系统意味着无效的MBR,启动记录或者非FAT格式",
        "3:FAT日志初始化失败,FAT初始化成功了,但是日志初始化失败",
};
Return Value
  • 0 - No error.
  • 1 - IO Error. IO/driver initialization failed, or there is no media, or media initialization failed.
  • 2 - Volume Error. Mount failed. For FAT this means invalid MBR, boot record, or invalid FAT formatting.
  • 3 - Driver Configuration Error. As a result of wrong configuration settings in File_Lib.c
  • 4 - Journal initialization failed. FAT was initialized, but the FAT journal initialization failed. This could be due to the lack of free space on the media or invalid journal structure. File system is OK. Files can be opened, read, written, closed without using the journal.


大佬这里应该不对,对应错了
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106746
QQ
发表于 2020-8-5 11:01:26 | 显示全部楼层
对,要修正下。

现在新版的改成这样了;
  1. /* FlashFS API的返回值 */
  2. static const char * ReVal_Table[]=
  3. {
  4.         "fsOK:成功",                                                       
  5.         "fsError:未指定的错误",
  6.         "fsUnsupported:操作不支持",
  7.         "fsAccessDenied:资源访问被拒绝",
  8.        
  9.         "fsInvalidParameter:参数无效",
  10.         "fsInvalidDrive:驱动无效或驱动不存在",
  11.         "fsInvalidPath:路径无效",
  12.         "fsUninitializedDrive:驱动未初始化 ",

  13.         "fsDriverError:读写操作",
  14.         "fsMediaError:媒介错误",
  15.         "fsNoMedia:媒介不存在,或者未初始化",
  16.         "fsNoFileSystem:文件系统未格式化",

  17.         "fsNoFreeSpace:没有可用空间",
  18.         "fsFileNotFound:文件未找到",
  19.         "fsDirNotEmpty:文件夹非空",
  20.         "fsTooManyOpenFiles:打开文件太多",
  21. };
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-3 17:07 , Processed in 0.225608 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表