mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:27:45 +00:00
Kernel: Add add_partition function
Until now partitions were added directly by accessing the private member of the StorageDevice class. Add a new member function to add partition.
This commit is contained in:
parent
794e82016e
commit
2c810332b6
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ public:
|
|||
|
||||
NonnullRefPtrVector<DiskPartition> const& partitions() const { return m_partitions; }
|
||||
|
||||
void add_partition(NonnullRefPtr<DiskPartition> disk_partition) { MUST(m_partitions.try_append(disk_partition)); }
|
||||
|
||||
virtual CommandSet command_set() const = 0;
|
||||
|
||||
// ^File
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue