mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
Kernel/Devices: Remove required_mode and device_name methods
These methods are no longer needed because SystemServer is able to populate the DevFS on its own. Device absolute_path no longer assume a path to the /dev location, because it really should not assume any path to a Device node. Because StorageManagement still needs to know the storage name, we declare a virtual method only for StorageDevices to override, but this technique should really be removed later on.
This commit is contained in:
parent
4f04cb98c1
commit
21b6d84ff0
38 changed files with 18 additions and 141 deletions
|
@ -68,13 +68,6 @@ bool DiskPartition::can_write(const OpenFileDescription& fd, size_t offset) cons
|
|||
return m_device->can_write(fd, offset + adjust);
|
||||
}
|
||||
|
||||
String DiskPartition::device_name() const
|
||||
{
|
||||
// FIXME: Try to not hardcode a maximum of 16 partitions per drive!
|
||||
size_t partition_index = minor() % 16;
|
||||
return String::formatted("{}{}", m_device->device_name(), partition_index + 1);
|
||||
}
|
||||
|
||||
StringView DiskPartition::class_name() const
|
||||
{
|
||||
return "DiskPartition";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue