mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 07:18:51 +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
Notes:
sideshowbarker
2024-07-19 05:10:00 +09:00
Author: https://github.com/bugaevc
Commit: 187b785a05
Pull-request: https://github.com/SerenityOS/serenity/pull/2675
Reviewed-by: https://github.com/awesomekling
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