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

Kernel+LibPartition: Move DiskPartitionMetadata into LibPartition

This commit creates a new library LibPartition which will contain
partition related code sharable between Kernel and Userland and
includes DiskPartitionMetadata as the first shared class.
This commit is contained in:
Samuel Bowman 2022-02-12 14:21:28 -05:00 committed by Linus Groh
parent 2786147774
commit be1c5c6b9f
9 changed files with 27 additions and 20 deletions

View file

@ -12,7 +12,7 @@ PartitionTable::PartitionTable(StorageDevice const& device)
{
}
Optional<DiskPartitionMetadata> PartitionTable::partition(unsigned index)
Optional<Partition::DiskPartitionMetadata> PartitionTable::partition(unsigned index)
{
if (index > partitions_count())
return {};