mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
Kernel: Fix PATADiskDevice device names
This broke the regular QEMU boot.
This commit is contained in:
parent
666936a06b
commit
82c879c315
1 changed files with 1 additions and 3 deletions
|
@ -67,9 +67,7 @@ void PATADiskDevice::start_request(AsyncBlockDeviceRequest& request)
|
||||||
|
|
||||||
String PATADiskDevice::device_name() const
|
String PATADiskDevice::device_name() const
|
||||||
{
|
{
|
||||||
// FIXME: Try to not hardcode a maximum of 16 partitions per drive!
|
return String::formatted("hd{:c}", 'a' + minor());
|
||||||
size_t drive_index = minor() / 16;
|
|
||||||
return String::formatted("hd{:c}{}", 'a' + drive_index, minor() + 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t PATADiskDevice::max_addressable_block() const
|
size_t PATADiskDevice::max_addressable_block() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue