1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 12:15:07 +00:00

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
parent 225957283e
commit a2601e1308

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!