ATA: Mark the CDROM as a block device
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
921b5ce360
commit
8939edf313
@ -296,6 +296,11 @@ class ATADevice : public Device
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_block_device() const override
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
usize size() const override
|
usize size() const override
|
||||||
{
|
{
|
||||||
return m_drive->capacity();
|
return m_drive->capacity();
|
||||||
|
Loading…
Reference in New Issue
Block a user