board_perf:add kv and vfs for risc-v

board_perf:add kv and vfs for risc-v
This commit is contained in:
Supowang
2022-06-07 17:25:22 +08:00
parent d3ab42b8b8
commit 85f804213f
18 changed files with 1199 additions and 117 deletions

View File

@@ -178,7 +178,7 @@ __API__ vfs_err_t tos_vfs_fs_mkfs(const char *device_path, const char *fs_name,
{
vfs_fsmap_t *fsmap = K_NULL;
vfs_inode_t *device_inode = K_NULL;
vfs_inode_t *fs_inode = K_NULL;
//vfs_inode_t *fs_inode = K_NULL;
fsmap = vfs_fsmap_get(fs_name);
if (!fsmap) {
@@ -194,7 +194,7 @@ __API__ vfs_err_t tos_vfs_fs_mkfs(const char *device_path, const char *fs_name,
return VFS_ERR_INODE_INVALID;
}
fs_inode->ops.fs_ops = fsmap->ops;
//device_inode->ops.fs_ops = fsmap->ops;
if (!fsmap->ops->mkfs) {
return VFS_ERR_OPS_NULL;