func CmdEmulateServiceActionIn(cmd Command, numLbas int64, blockSize int) int { if C.tcmucmd_get_cdb_at(cmd, 1) == C.READ_CAPACITY_16 { return int(C.tcmu_emulate_read_capacity_16(C.uint64_t(numLbas), C.uint32_t(blockSize), cmd.cdb, cmd.iovec, cmd.iov_cnt, &cmd.sense_buf[0])) } return C.TCMU_NOT_HANDLED }
func CmdGetScsiCmd(cmd Command) byte { return byte(C.tcmucmd_get_cdb_at(cmd, 0)) }