mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
Kernel/Storage: Don't hardcode a maximum of 16 partitions per drive
In the near future, we will be able to figure out connections between storage devices and their partitions, so there's no need to hardcode 16 partitions per storage device - each storage device should be able to have "infinite" count of partitions in it, and we should be able to use and figure out about them.
This commit is contained in:
parent
cb68619b7f
commit
1102089f9f
5 changed files with 17 additions and 12 deletions
|
@ -17,7 +17,7 @@ class DiskPartition final : public BlockDevice {
|
|||
friend class DeviceManagement;
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<DiskPartition> create(BlockDevice&, unsigned, Partition::DiskPartitionMetadata);
|
||||
static NonnullRefPtr<DiskPartition> create(BlockDevice&, MinorNumber, Partition::DiskPartitionMetadata);
|
||||
virtual ~DiskPartition();
|
||||
|
||||
virtual void start_request(AsyncBlockDeviceRequest&) override;
|
||||
|
@ -31,7 +31,7 @@ public:
|
|||
Partition::DiskPartitionMetadata const& metadata() const;
|
||||
|
||||
private:
|
||||
DiskPartition(BlockDevice&, unsigned, Partition::DiskPartitionMetadata);
|
||||
DiskPartition(BlockDevice&, MinorNumber, Partition::DiskPartitionMetadata);
|
||||
virtual StringView class_name() const override;
|
||||
|
||||
WeakPtr<BlockDevice> m_device;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue