mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 18:54:57 +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:
parent
0c72a9eda7
commit
187b785a05
7 changed files with 371 additions and 294 deletions
|
@ -70,7 +70,7 @@ NonnullRefPtr<Ext2FS> Ext2FS::create(FileDescription& file_description)
|
|||
}
|
||||
|
||||
Ext2FS::Ext2FS(FileDescription& file_description)
|
||||
: FileBackedFS(file_description)
|
||||
: BlockBasedFS(file_description)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -548,7 +548,7 @@ void Ext2FS::flush_writes()
|
|||
}
|
||||
}
|
||||
|
||||
FileBackedFS::flush_writes();
|
||||
BlockBasedFS::flush_writes();
|
||||
|
||||
// Uncache Inodes that are only kept alive by the index-to-inode lookup cache.
|
||||
// We don't uncache Inodes that are being watched by at least one InodeWatcher.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue