🆕 将fat32文件系统适配VFS框架

This commit is contained in:
fslongjin
2022-04-22 21:30:48 +08:00
parent 7d3c1b098e
commit 677c505cb1
5 changed files with 486 additions and 190 deletions

View File

@ -11,10 +11,10 @@ static struct vfs_filesystem_type_t vfs_fs = {"filesystem", 0};
* @param name 文件系统名
* @param DPTE 分区表entry
* @param DPT_type 分区表类型
* @param buf 缓存去
* @param buf 文件系统的引导扇区
* @return struct vfs_superblock_t*
*/
struct vfs_superblock_t *vfs_mount_fs(char *name, void *DPTE, uint8_t DPT_type, void *buf)
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)
{
struct vfs_filesystem_type_t *p = NULL;
@ -22,7 +22,7 @@ struct vfs_superblock_t *vfs_mount_fs(char *name, void *DPTE, uint8_t DPT_type,
{
if (!strcmp(p->name, name)) // 存在符合的文件系统
{
return p->read_superblock(DPTE, DPT_type, buf);
return p->read_superblock(DPTE, DPT_type, buf, ahci_ctrl_num, ahci_port_num, part_num);
}
}
kdebug("unsupported fs: %s", name);