new: 在devfs中使用键盘文件(仍存在bug)

This commit is contained in:
fslongjin
2022-09-07 00:05:34 +08:00
parent 86a5f25e07
commit d7423f36be
15 changed files with 644 additions and 213 deletions

View File

@ -343,6 +343,7 @@ struct vfs_superblock_t *fat32_read_superblock(struct block_device *blk)
struct vfs_superblock_t *sb_ptr = (struct vfs_superblock_t *)kzalloc(sizeof(struct vfs_superblock_t), 0);
blk->bd_superblock = sb_ptr;
sb_ptr->sb_ops = &fat32_sb_ops;
sb_ptr->dir_ops = &fat32_dEntry_ops;
sb_ptr->private_sb_info = kzalloc(sizeof(fat32_sb_info_t), 0);
sb_ptr->blk_device = blk;