Add a utility function to copy the target information to the caller - used
in the initiator functionality to keep a track of the target details.
This commit is contained in:
parent
bfe5c01baa
commit
f22b6d776c
|
@ -3072,3 +3072,9 @@ initiator_discover(char *host, uint64_t target, int lun)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
get_target_info(uint64_t target, initiator_target_t *ip)
|
||||
{
|
||||
(void) memcpy(ip, &g_target[target], sizeof(*ip));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue