mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
Kernel: Fix PATADiskDevice device names
This broke the regular QEMU boot.
This commit is contained in:
parent
666936a06b
commit
82c879c315
Notes:
sideshowbarker
2024-07-18 22:57:27 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/82c879c3153
@ -67,9 +67,7 @@ void PATADiskDevice::start_request(AsyncBlockDeviceRequest& request)
|
||||
|
||||
String PATADiskDevice::device_name() const
|
||||
{
|
||||
// FIXME: Try to not hardcode a maximum of 16 partitions per drive!
|
||||
size_t drive_index = minor() / 16;
|
||||
return String::formatted("hd{:c}{}", 'a' + drive_index, minor() + 1);
|
||||
return String::formatted("hd{:c}", 'a' + minor());
|
||||
}
|
||||
|
||||
size_t PATADiskDevice::max_addressable_block() const
|
||||
|
Loading…
Reference in New Issue
Block a user