Kernel: Hook Ramdisk devices inside DevFS

This commit is contained in:
Jean-Baptiste Boric 2021-01-20 20:50:14 +01:00 committed by Andreas Kling
commit a2601e1308
Notes: sideshowbarker 2024-07-18 22:57:40 +09:00

View file

@ -409,6 +409,9 @@ String DevFSDeviceInode::determine_name() const
char drive_letter = (u8)drive_index;
return String::format("hd%c", drive_letter);
}
case 6: {
return String::formatted("ramdisk{}", m_attached_device->minor());
}
case 100:
// FIXME: Try to not hardcode a maximum of 16 partitions per drive!