From 82c879c31538ec2bbe448cff778e107e7b80f600 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 22 Jan 2021 22:22:15 +0100 Subject: [PATCH] Kernel: Fix PATADiskDevice device names This broke the regular QEMU boot. --- Kernel/Storage/PATADiskDevice.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Kernel/Storage/PATADiskDevice.cpp b/Kernel/Storage/PATADiskDevice.cpp index 80655859026..4236f88430b 100644 --- a/Kernel/Storage/PATADiskDevice.cpp +++ b/Kernel/Storage/PATADiskDevice.cpp @@ -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