mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +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
Notes:
sideshowbarker
2024-07-17 08:41:46 +09:00
Author: https://github.com/SamuelBowman
Commit: be1c5c6b9f
Pull-request: https://github.com/SerenityOS/serenity/pull/14432
Reviewed-by: https://github.com/linusg
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