🆕 fat32_create

This commit is contained in:
fslongjin
2022-07-07 00:55:33 +08:00
parent fc3fbf7acc
commit 8c8352e748
8 changed files with 208 additions and 38 deletions

View File

@ -12,6 +12,7 @@
#pragma once
#include <common/glib.h>
#include <common/fcntl.h>
struct vfs_superblock_t *vfs_root_sb = NULL;
@ -109,11 +110,11 @@ struct vfs_inode_operations_t
{
/**
* @brief 创建新的文件
* @param inode 要被创建的文件的inode结构体
* @param parent_dEntry 父目录的dentry
* @param parent_inode 父目录的inode结构体
* @param dest_dEntry 新文件的dentry
* @param mode 创建模式
*/
long (*create)(struct vfs_index_node_t *inode, struct vfs_dir_entry_t *parent_dEntry, int mode);
long (*create)(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *dest_dEntry, int mode);
/**
* @brief 在文件系统中查找指定的目录项
* @param parent_inode 父目录项(在这个目录下查找)