fs: move fs init into kernel cmdline
Previously, any partition with an ext2 filesystem would be mounted by the gpt header parser. With this patch, the kernel cmdline `root=val` is responsible for mounting the root filesystem.
This commit is contained in:
parent
5ebafca2e6
commit
25a828437a
10 changed files with 150 additions and 32 deletions
|
|
@ -141,7 +141,7 @@ struct ext2fs {
|
|||
uint32_t block_size;
|
||||
};
|
||||
|
||||
struct ext2fs *ext2_init_fs(struct block_device *bdev);
|
||||
struct fs *ext2_init_fs(struct block_device *bdev);
|
||||
|
||||
/* Filesystem block sizes are not equal to block device block sizes */
|
||||
int ext2_read_block(struct ext2fs *fs, void *buf, size_t block);
|
||||
|
|
|
|||
Loading…
Reference in a new issue