| 279 | } |
| 280 | |
| 281 | void PrimaryDevice::ReleaseUnit() |
| 282 | { |
| 283 | if (reserving_initiator != -1) { |
| 284 | LogTrace("Released device reserved by initiator ID " + to_string(reserving_initiator)); |
| 285 | } |
| 286 | else { |
| 287 | LogTrace("Released device reserved by unknown initiator"); |
| 288 | } |
| 289 | |
| 290 | DiscardReservation(); |
| 291 | |
| 292 | EnterStatusPhase(); |
| 293 | } |
| 294 | |
| 295 | bool PrimaryDevice::CheckReservation(int initiator_id, scsi_command cmd, bool prevent_removal) const |
| 296 | { |
nothing calls this directly
no outgoing calls
no test coverage detected