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:
parent
2786147774
commit
be1c5c6b9f
9 changed files with 27 additions and 20 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue