diff options
author | Liav A <liavalb@gmail.com> | 2020-04-06 11:54:21 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-06 15:36:36 +0200 |
commit | ecee76b7418c4b3ed17a0a8690e8f8cf6c0736a1 (patch) | |
tree | 3cf0208d56293fb0dea7c9ccd61a3fb21a97e22a /Kernel/init.cpp | |
parent | 1d6c8724b9837fcef96e6d1c83ffa38a5a167fb7 (diff) | |
download | serenity-ecee76b7418c4b3ed17a0a8690e8f8cf6c0736a1.zip |
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).
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r-- | Kernel/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 5b9777d3c0..ddb622f40f 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -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(); |