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

Kernel/Storage: Rename DiskPartition => StorageDevicePartition

We deal with partitions for storage devices, not only for disk devices,
originally harddrives.
This commit is contained in:
Liav A 2023-06-30 08:59:58 +03:00 committed by Andrew Kaster
parent 4e651d0e4f
commit 42ed0a6c94
6 changed files with 28 additions and 28 deletions

View file

@ -221,7 +221,7 @@ ErrorOr<void> StorageManagement::enumerate_device_partitions(StorageDevice& devi
{
auto partition_table = TRY(try_to_initialize_partition_table(device));
for (auto partition_metadata : partition_table->partitions()) {
auto disk_partition = DiskPartition::create(device, generate_partition_minor_number(), partition_metadata);
auto disk_partition = StorageDevicePartition::create(device, generate_partition_minor_number(), partition_metadata);
device.add_partition(disk_partition);
}