🆕 fat32_write (存在写入bug)

This commit is contained in:
fslongjin
2022-04-29 23:57:36 +08:00
parent 3e101d71ff
commit 9db1c3f74e
4 changed files with 251 additions and 43 deletions

View File

@ -24,7 +24,7 @@ struct vfs_superblock_t *vfs_root_sb = NULL;
/**
* @brief 目录项的属性
*
*
*/
#define VFS_ATTR_FILE (1UL << 0)
#define VFS_ATTR_DIR (1UL << 1)
@ -73,7 +73,7 @@ struct vfs_index_node_t
/**
* @brief 文件描述符
*
*
*/
struct vfs_file_t
{
@ -95,9 +95,9 @@ struct vfs_filesystem_type_t
struct vfs_super_block_operations_t
{
void (*write_superblock)(struct vfs_superblock_t *sb);
void (*write_superblock)(struct vfs_superblock_t *sb); // 将超级块信息写入磁盘
void (*put_superblock)(struct vfs_superblock_t *sb);
void (*write_inode)(struct vfs_index_node_t *inode);
void (*write_inode)(struct vfs_index_node_t *inode); // 将inode信息写入磁盘
};
/**
@ -153,7 +153,6 @@ uint64_t vfs_unregister_filesystem(struct vfs_filesystem_type_t *fs);
*/
struct vfs_superblock_t *vfs_mount_fs(char *name, void *DPTE, uint8_t DPT_type, void *buf, int8_t ahci_ctrl_num, int8_t ahci_port_num, int8_t part_num);
/**
* @brief 按照路径查找文件
*