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

Method ReadWriteLong16

cpp/devices/disk.cpp:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void Disk::ReadWriteLong16() const
143{
144 ValidateBlockAddress(RW16);
145
146 // Transfer lengths other than 0 are not supported, which is compliant with the SCSI standard
147 if (GetInt16(GetController()->GetCmd(), 12) != 0) {
148 throw scsi_exception(sense_key::illegal_request, asc::invalid_field_in_cdb);
149 }
150
151 EnterStatusPhase();
152}
153
154void Disk::Write(access_mode mode) const
155{

Callers

nothing calls this directly

Calls 3

scsi_exceptionClass · 0.85
GetCmdMethod · 0.80
GetInt16Function · 0.70

Tested by

no test coverage detected