From 8939edf3136f2aeb57587954ddb383cd8eeb7ca1 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 26 May 2023 20:29:31 +0200 Subject: [PATCH] ATA: Mark the CDROM as a block device --- kernel/src/arch/x86_64/disk/ATA.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/src/arch/x86_64/disk/ATA.h b/kernel/src/arch/x86_64/disk/ATA.h index fbcd3ff3..c86cf4d9 100644 --- a/kernel/src/arch/x86_64/disk/ATA.h +++ b/kernel/src/arch/x86_64/disk/ATA.h @@ -296,6 +296,11 @@ class ATADevice : public Device return false; } + bool is_block_device() const override + { + return true; + } + usize size() const override { return m_drive->capacity();