billtian 发表于 2012-9-27 14:21:59

1.0.0中dfs_mkfs中fs_name参数应该怎么指定,以前没有这个参数

本帖最后由 billtian 于 2012-9-27 14:24 编辑

int dfs_mkfs

(
const char *

fs_name,


const char *

device_name
)

make a file system on the special device
Parameters:

fs_name

the file system name


device_name

the special device name

Returns:0 on successful, otherwise failed.

ffxz 发表于 2012-9-27 23:03:23

参数已经描述得很清楚了:
fs_name, the file system name
device_name, the special device name

billtian 发表于 2012-9-28 09:42:24

谢谢回复,the file system name是随便给一个字符串吗?这个名字有什么用?我调用这个函数总是返回-1

aozima 发表于 2012-9-28 16:28:02

RT-Thread的DFS支持多种文件系统。

dfs_register会向系统注册一个新的文件系统。    /* register fatfs file system */
    dfs_register(&dfs_elm);
fs_name参数就是 struct dfs_filesystem_operation 的 name。
mkfs通过这个名称来得知你想格式化成哪个文件系统。
页: [1]
查看完整版本: 1.0.0中dfs_mkfs中fs_name参数应该怎么指定,以前没有这个参数