mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
cb10f70394
Instead of using a raw `KBuffer` and letting each implementation to populating the specific flags on its own, we change things so we only let each FileSystem implementation to validate the flag and its value but then store it in a HashMap which its key is the flag name and the value is a special new class called `FileSystemSpecificOption` which wraps around `AK::Variant<...>`. This approach has multiple advantages over the previous: - It allows runtime inspection of what the user has set on a `MountFile` description for a specific filesystem. - It ensures accidental overriding of filesystem specific option that was already set is not possible - It removes ugly casting of a `KBuffer` contents to a strongly-typed values. Instead, a strongly-typed `AK::Variant` is used which ensures we always get a value without doing any casting. Please note that we have removed support for ASCII string-oriented flags as there were no actual use cases, and supporting such type would make `FileSystemSpecificOption` more complicated unnecessarily for now. |
||
---|---|---|
.. | ||
DevLoopFS | ||
DevPtsFS | ||
Ext2FS | ||
FATFS | ||
FUSE | ||
ISO9660FS | ||
Plan9FS | ||
ProcFS | ||
RAMFS | ||
SysFS | ||
AnonymousFile.cpp | ||
AnonymousFile.h | ||
BlockBasedFileSystem.cpp | ||
BlockBasedFileSystem.h | ||
Custody.cpp | ||
Custody.h | ||
CustodyBase.cpp | ||
CustodyBase.h | ||
FIFO.cpp | ||
FIFO.h | ||
File.cpp | ||
File.h | ||
FileBackedFileSystem.cpp | ||
FileBackedFileSystem.h | ||
FileSystem.cpp | ||
FileSystem.h | ||
FileSystemSpecificOption.cpp | ||
FileSystemSpecificOption.h | ||
Initializer.h | ||
Inode.cpp | ||
Inode.h | ||
InodeFile.cpp | ||
InodeFile.h | ||
InodeIdentifier.h | ||
InodeMetadata.cpp | ||
InodeMetadata.h | ||
InodeWatcher.cpp | ||
InodeWatcher.h | ||
Mount.cpp | ||
Mount.h | ||
MountFile.cpp | ||
MountFile.h | ||
OpenFileDescription.cpp | ||
OpenFileDescription.h | ||
RAMBackedFileType.h | ||
UnveilNode.h | ||
VFSRootContext.cpp | ||
VFSRootContext.h | ||
VirtualFileSystem.cpp | ||
VirtualFileSystem.h |