Devfs初步实现 (#41)

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

* new:支持dev目录下的readdir
This commit is contained in:
login
2022-09-07 23:27:27 +08:00
committed by GitHub
parent 86a5f25e07
commit 7d44599447
16 changed files with 683 additions and 215 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;