1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:38:12 +00:00

Kernel: Fix const-correctness issue in StorageManagement

We have to take the StorageDevice as a mutable reference, otherwise
we can't perform any interesting I/O operations on it.
This commit is contained in:
Andreas Kling 2023-02-19 23:16:05 +01:00
parent b5cef78e35
commit 0cdd227e9b
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ private:
void dump_storage_devices_and_partitions() const;
ErrorOr<NonnullOwnPtr<Partition::PartitionTable>> try_to_initialize_partition_table(StorageDevice const&) const;
ErrorOr<NonnullOwnPtr<Partition::PartitionTable>> try_to_initialize_partition_table(StorageDevice&) const;
LockRefPtr<BlockDevice> boot_block_device() const;