MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / ReadDefectData10

Method ReadDefectData10

cpp/devices/disk.cpp:243–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void 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
255bool Disk::Eject(bool force)
256{

Callers

nothing calls this directly

Calls 3

GetCmdMethod · 0.80
SetLengthMethod · 0.80
GetInt16Function · 0.70

Tested by

no test coverage detected