mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 02:30:30 +09: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
Notes:
sideshowbarker
2024-07-19 07:51:19 +09:00
Author: https://github.com/supercomputer7
Commit: ecee76b741
Pull-request: https://github.com/SerenityOS/serenity/pull/1663
Reviewed-by: https://github.com/awesomekling
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