1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

IDEDiskDevice: Detect disk errors and report failure to clients.

Previously we'd just fail silently if there was an I/O error of any kind.
This commit is contained in:
Andreas Kling 2019-02-11 11:38:14 +01:00
parent e6de6c4f45
commit 298a49c688
3 changed files with 31 additions and 16 deletions

View file

@ -41,7 +41,8 @@ private:
word m_cylinders { 0 };
word m_heads { 0 };
word m_sectors_per_track { 0 };
mutable volatile bool m_interrupted { false };
volatile bool m_interrupted { false };
volatile byte m_device_error { 0 };
};