serenity/Kernel/FileSystem/ISO9660FS
Liav A. cb10f70394 Kernel: Change internal handling of filesystem-specific options
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.
2024-08-03 20:35:06 +02:00
..
Definitions.h
DirectoryEntry.h
DirectoryIterator.cpp
DirectoryIterator.h
FileSystem.cpp Kernel: Change internal handling of filesystem-specific options 2024-08-03 20:35:06 +02:00
FileSystem.h Kernel: Change internal handling of filesystem-specific options 2024-08-03 20:35:06 +02:00
Inode.cpp Kernel/FileSystem: Enforce locking of m_inode_lock when truncating Inode 2024-02-24 16:45:26 -07:00
Inode.h Kernel/FileSystem: Enforce locking of m_inode_lock when truncating Inode 2024-02-24 16:45:26 -07:00