mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 19:45:08 +00:00
Kernel: Change Ext2FS to be backed by a file instead of a block device
In contrast to the previous patchset that was reverted, this time we use a "special" method to access a file with block size of 512 bytes (like a harddrive essentially).
This commit is contained in:
parent
1d6c8724b9
commit
ecee76b741
10 changed files with 104 additions and 77 deletions
|
@ -292,7 +292,7 @@ void init_stage2()
|
|||
}
|
||||
}
|
||||
}
|
||||
auto e2fs = Ext2FS::create(root_dev);
|
||||
auto e2fs = Ext2FS::create(*FileDescription::create(root_dev));
|
||||
if (!e2fs->initialize()) {
|
||||
klog() << "init_stage2: couldn't open root filesystem";
|
||||
hang();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue