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

Method FormatUnit

cpp/devices/disk.cpp:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void Disk::FormatUnit()
100{
101 CheckReady();
102
103 // FMTDATA=1 is not supported (but OK if there is no DEFECT LIST)
104 if ((GetController()->GetCmdByte(1) & 0x10) != 0 && GetController()->GetCmdByte(4) != 0) {
105 throw scsi_exception(sense_key::illegal_request, asc::invalid_field_in_cdb);
106 }
107
108 EnterStatusPhase();
109}
110
111void Disk::Read(access_mode mode)
112{

Callers

nothing calls this directly

Calls 2

scsi_exceptionClass · 0.85
GetCmdByteMethod · 0.80

Tested by

no test coverage detected