init: make LIBISCSI_CACHE_ALLOCATIONS a public environment variable
this variable was introduced for iscsi-test-cu only. This patch makes it a generic environment variable that can be set per context. Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -153,6 +153,7 @@ struct iscsi_context {
|
||||
void* smalloc_ptrs[SMALL_ALLOC_MAX_FREE];
|
||||
int smalloc_free;
|
||||
size_t smalloc_size;
|
||||
int cache_allocations;
|
||||
|
||||
time_t next_reconnect;
|
||||
int scsi_timeout;
|
||||
|
||||
@@ -51,7 +51,7 @@ struct sockaddr;
|
||||
"<host>[:<port>]\""
|
||||
|
||||
|
||||
EXTERN void iscsi_set_cache_allocations(int ca);
|
||||
EXTERN void iscsi_set_cache_allocations(struct iscsi_context *iscsi, int ca);
|
||||
|
||||
/*
|
||||
* The following three functions are used to integrate libiscsi in an event
|
||||
|
||||
Reference in New Issue
Block a user