1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +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:
Liav A 2022-07-23 11:15:35 +03:00 committed by Linus Groh
parent cb68619b7f
commit 1102089f9f
5 changed files with 17 additions and 12 deletions

View file

@ -31,6 +31,8 @@ public:
static MajorNumber storage_type_major_number();
static MinorNumber generate_storage_minor_number();
static MinorNumber generate_partition_minor_number();
static u32 generate_controller_id();
void remove_device(StorageDevice&);