| 241 | } |
| 242 | |
| 243 | void Disk::ReadDefectData10() const |
| 244 | { |
| 245 | const size_t allocation_length = min(static_cast<size_t>(GetInt16(GetController()->GetCmd(), 7)), |
| 246 | static_cast<size_t>(4)); |
| 247 | |
| 248 | // The defect list is empty |
| 249 | fill_n(GetController()->GetBuffer().begin(), allocation_length, 0); |
| 250 | GetController()->SetLength(static_cast<uint32_t>(allocation_length)); |
| 251 | |
| 252 | EnterDataInPhase(); |
| 253 | } |
| 254 | |
| 255 | bool Disk::Eject(bool force) |
| 256 | { |