From a9b9fae23fe54fd48cf26f6a63e9a4a613972ece Mon Sep 17 00:00:00 2001 From: Austin Date: Mon, 21 Feb 2022 07:57:40 +0000 Subject: [PATCH] update zh-cn/device-dev/kernel/kernel-small-bundles-fs-virtual.md. Signed-off-by: Austin --- .../kernel/kernel-small-bundles-fs-virtual.md | 70 +++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/zh-cn/device-dev/kernel/kernel-small-bundles-fs-virtual.md b/zh-cn/device-dev/kernel/kernel-small-bundles-fs-virtual.md index e1c3227d81..d28ee3a765 100644 --- a/zh-cn/device-dev/kernel/kernel-small-bundles-fs-virtual.md +++ b/zh-cn/device-dev/kernel/kernel-small-bundles-fs-virtual.md @@ -62,43 +62,43 @@ OpenHarmony内核中,VFS框架是通过在内存中的树结构来实现的, | 分类 | 接口**名称** | 功能 | FAT | JFFS2 | NFS | TMPFS | PROCFS | | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | | 文件操作 | open | 打开文件 | √ | √ | √ | √ | √ | -| read/pread/readv/preadv | 读取文件 | √ | √ | √ | √ | √ | -| write/pwrite/writev/pwritev | 写入文件 | √ | √ | √ | √ | √ | -| lseek | 设置文件偏移 | √ | √ | √ | √ | × | -| close | 关闭文件 | √ | √ | √ | √ | √ | -| unlink | 删除文件 | √ | √ | √ | √ | × | -| fstat | 查询文件信息 | √ | √ | √ | √ | √ | -| fallocate | 预分配大小 | √ | × | × | × | × | -| truncate | 文件截断 | √ | √ | × | √ | × | -| link | 创建硬链接 | × | √ | × | × | × | -| symlink | 创建软链接 | √ | √ | × | × | × | -| readlink | 读取软链接 | √ | √ | × | × | × | -| dup | 复制文件句柄 | √ | √ | √ | √ | √ | -| fsync | 文件内容刷入设备 | √ | × | × | × | × | -| ioctl | 设备控制 | × | × | × | √ | × | -| fcntl | 文件控制操作 | √ | √ | √ | √ | √ | +| | read/pread/readv/preadv | 读取文件 | √ | √ | √ | √ | √ | +| | write/pwrite/writev/pwritev | 写入文件 | √ | √ | √ | √ | √ | +| | lseek | 设置文件偏移 | √ | √ | √ | √ | × | +| | close | 关闭文件 | √ | √ | √ | √ | √ | +| | unlink | 删除文件 | √ | √ | √ | √ | × | +| | fstat | 查询文件信息 | √ | √ | √ | √ | √ | +| | fallocate | 预分配大小 | √ | × | × | × | × | +| | truncate | 文件截断 | √ | √ | × | √ | × | +| | link | 创建硬链接 | × | √ | × | × | × | +| | symlink | 创建软链接 | √ | √ | × | × | × | +| | readlink | 读取软链接 | √ | √ | × | × | × | +| | dup | 复制文件句柄 | √ | √ | √ | √ | √ | +| | fsync | 文件内容刷入设备 | √ | × | × | × | × | +| | ioctl | 设备控制 | × | × | × | √ | × | +| | fcntl | 文件控制操作 | √ | √ | √ | √ | √ | | 目录操作 | mkdir | 创建目录 | √ | √ | √ | √ | × | -| opendir | 打开目录 | √ | √ | √ | √ | √ | -| readdir | 读取目录 | √ | √ | √ | √ | √ | -| closedir | 关闭目录 | √ | √ | √ | √ | √ | -| telldir | 获取目录偏移 | √ | √ | √ | √ | √ | -| seekdir | 设置目录偏移 | √ | √ | √ | √ | √ | -| rewinddir | 重置目录偏移 | √ | √ | √ | √ | × | -| scandir | 读取目录数据 | √ | √ | √ | √ | √ | -| rmdir | 删除目录 | √ | √ | √ | √ | × | -| chdir | 切换当前路径 | √ | √ | √ | √ | √ | -| getcwd | 获取当前路径 | √ | √ | √ | √ | √ | -| realpath | 相对/绝对路径转换 | √ | √ | √ | √ | √ | -| rename | 文件/目录重命名 | √ | √ | √ | √ | × | -| chmod | 修改文件/目录属性 | √ | √ | × | × | × | -| chown | 修改文件/目录所有者 | √ | √ | × | × | × | -| stat/lstat | 查询文件/目录信息 | √ | √ | √ | √ | √ | -| access | 查询文件/目录访问权限 | √ | √ | √ | √ | √ | +| | opendir | 打开目录 | √ | √ | √ | √ | √ | +| | readdir | 读取目录 | √ | √ | √ | √ | √ | +| | closedir | 关闭目录 | √ | √ | √ | √ | √ | +| | telldir | 获取目录偏移 | √ | √ | √ | √ | √ | +| | seekdir | 设置目录偏移 | √ | √ | √ | √ | √ | +| | rewinddir | 重置目录偏移 | √ | √ | √ | √ | × | +| | scandir | 读取目录数据 | √ | √ | √ | √ | √ | +| | rmdir | 删除目录 | √ | √ | √ | √ | × | +| | chdir | 切换当前路径 | √ | √ | √ | √ | √ | +| | getcwd | 获取当前路径 | √ | √ | √ | √ | √ | +| | realpath | 相对/绝对路径转换 | √ | √ | √ | √ | √ | +| | rename | 文件/目录重命名 | √ | √ | √ | √ | × | +| | chmod | 修改文件/目录属性 | √ | √ | × | × | × | +| | chown | 修改文件/目录所有者 | √ | √ | × | × | × | +| | stat/lstat | 查询文件/目录信息 | √ | √ | √ | √ | √ | +| | access | 查询文件/目录访问权限 | √ | √ | √ | √ | √ | | 分区操作 | mount | 挂载分区 | √ | √ | √ | √ | √ | -| umount | 卸载分区 | √ | √ | √ | √ | × | -| statfs | 查询挂载分区信息 | √ | √ | √ | √ | √ | -| format | 格式化分区 | √ | × | × | × | × | -| sync | 分区内容刷入设备 | √ | × | × | × | × | +| | umount | 卸载分区 | √ | √ | √ | √ | × | +| | statfs | 查询挂载分区信息 | √ | √ | √ | √ | √ | +| | format | 格式化分区 | √ | × | × | × | × | +| | sync | 分区内容刷入设备 | √ | × | × | × | × | ### 开发流程 -- GitLab