summaryrefslogtreecommitdiff
path: root/Kernel/Storage
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Storage')
-rw-r--r--Kernel/Storage/StorageDevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Storage/StorageDevice.h b/Kernel/Storage/StorageDevice.h
index 8472009669..4f3555e0bc 100644
--- a/Kernel/Storage/StorageDevice.h
+++ b/Kernel/Storage/StorageDevice.h
@@ -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