mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
Revert "Kernel: Change Ext2FS to be backed by a file instead of a block device"
This reverts commit 6b59311d4b
.
Reverting these changes since they broke things.
Fixes #1608.
This commit is contained in:
parent
9ae3cced76
commit
c2a8bbcb59
Notes:
sideshowbarker
2024-07-19 07:58:15 +09:00
Author: https://github.com/awesomekling
Commit: c2a8bbcb59
10 changed files with 90 additions and 116 deletions
|
@ -35,7 +35,7 @@
|
|||
#include <Kernel/Arch/i386/CPU.h>
|
||||
#include <Kernel/Devices/BlockDevice.h>
|
||||
#include <Kernel/FileSystem/Custody.h>
|
||||
#include <Kernel/FileSystem/FileBackedFileSystem.h>
|
||||
#include <Kernel/FileSystem/DiskBackedFileSystem.h>
|
||||
#include <Kernel/FileSystem/FileDescription.h>
|
||||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||
#include <Kernel/Heap/kmalloc.h>
|
||||
|
@ -746,10 +746,10 @@ Optional<KBuffer> procfs$df(InodeIdentifier)
|
|||
fs_object.add("readonly", fs.is_readonly());
|
||||
fs_object.add("mount_flags", mount.flags());
|
||||
|
||||
if (fs.is_file_backed())
|
||||
fs_object.add("source", static_cast<const FileBackedFS&>(fs).file_description().absolute_path());
|
||||
if (fs.is_disk_backed())
|
||||
fs_object.add("device", static_cast<const DiskBackedFS&>(fs).device().absolute_path());
|
||||
else
|
||||
fs_object.add("source", fs.class_name());
|
||||
fs_object.add("device", fs.class_name());
|
||||
});
|
||||
array.finish();
|
||||
return builder.build();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue