ladybird/Kernel/Storage/Partition
Liav A fb7b4caa57 Kernel/Storage: Implement basic AHCI hotplug support
This is really a basic support for AHCI hotplug events, so we know how
to add a node representing the device in /sys/dev/block and removing it
according to the event type (insertion/removal).

This change doesn't take into account what happens if the device was
mounted or a read/write operation is being handled.

For this to work correctly, StorageManagement now uses the Singleton
container, as it might be accessed simultaneously from many CPUs
for hotplug events. DiskPartition holds a WeakPtr instead of a RefPtr,
to allow removal of a StorageDevice object from the heap.
StorageDevices are now stored and being referenced to via an
IntrusiveList to make it easier to remove them on hotplug event.

In future changes, all of the stated above might change, but for now,
this commit represents the least amount of changes to make everything
to work correctly.
2021-09-08 00:42:20 +02:00
..
DiskPartition.cpp Kernel/Storage: Implement basic AHCI hotplug support 2021-09-08 00:42:20 +02:00
DiskPartition.h Kernel/Storage: Implement basic AHCI hotplug support 2021-09-08 00:42:20 +02:00
DiskPartitionMetadata.cpp Everywhere: Make use of container version of all_of 2021-08-03 10:46:43 +02:00
DiskPartitionMetadata.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
EBRPartitionTable.cpp Kernel: Fix incorrect argument when constructing DiskPartitionMetadata 2021-05-16 17:49:42 +02:00
EBRPartitionTable.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
GUIDPartitionTable.cpp Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
GUIDPartitionTable.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
MBRPartitionTable.cpp Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
MBRPartitionTable.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PartitionTable.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PartitionTable.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00