1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 10:04:59 +00:00

Kernel: Split BlockBasedFileSystem off FileBackedFileSystem

FileBackedFileSystem is one that's backed by (mounted from) a file, in other
words one that has a "source" of the mount; that doesn't mean it deals in
blocks. The hierarchy now becomes:

* FS
  * ProcFS
  * DevPtsFS
  * TmpFS
  * FileBackedFS
    * (future) Plan9FS
    * BlockBasedFS
      * Ext2FS
This commit is contained in:
Sergey Bugaev 2020-07-02 12:48:08 +03:00 committed by Andreas Kling
parent 0c72a9eda7
commit 187b785a05
7 changed files with 371 additions and 294 deletions

View file

@ -28,7 +28,7 @@
#include <AK/Bitmap.h>
#include <AK/HashMap.h>
#include <Kernel/FileSystem/FileBackedFileSystem.h>
#include <Kernel/FileSystem/BlockBasedFileSystem.h>
#include <Kernel/FileSystem/Inode.h>
#include <Kernel/FileSystem/ext2_fs.h>
#include <Kernel/KBuffer.h>
@ -89,7 +89,7 @@ private:
ext2_inode m_raw_inode;
};
class Ext2FS final : public FileBackedFS {
class Ext2FS final : public BlockBasedFS {
friend class Ext2FSInode;
public: