ext2: replace struct inode with ext2_inode
This commit is contained in:
parent
1cf54c7fd3
commit
7832f4a896
2 changed files with 2 additions and 3 deletions
|
|
@ -663,7 +663,7 @@ static int ext2_open_file(struct fs *vfs, struct file *file, const char *path)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&file->inode, inode, sizeof(struct inode));
|
memcpy(&file->inode, inode, sizeof(struct ext2_inode));
|
||||||
file->size = inode->size;
|
file->size = inode->size;
|
||||||
file->type = inode_to_ftype[inode->mode >> 12];
|
file->type = inode_to_ftype[inode->mode >> 12];
|
||||||
file->inode_num = inode_no;
|
file->inode_num = inode_no;
|
||||||
|
|
|
||||||
3
fs/vfs.c
3
fs/vfs.c
|
|
@ -283,10 +283,9 @@ void vfs_init(const char *rootdev_name)
|
||||||
struct fs *fs = ext2_init_fs(rootdev);
|
struct fs *fs = ext2_init_fs(rootdev);
|
||||||
if (!fs) {
|
if (!fs) {
|
||||||
kprintf(LOG_ERROR "Failed to mount root device %s\n", rootdev_name);
|
kprintf(LOG_ERROR "Failed to mount root device %s\n", rootdev_name);
|
||||||
return;
|
panic();
|
||||||
} else {
|
} else {
|
||||||
kprintf(LOG_DEBUG "Mounted root device %s\n", rootdev_name);
|
kprintf(LOG_DEBUG "Mounted root device %s\n", rootdev_name);
|
||||||
panic();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fs->mount_point = kzalloc(2, ALLOC_KERN);
|
fs->mount_point = kzalloc(2, ALLOC_KERN);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue