Ronnie Sahlberg
0013ae25e6
Merge branch 'master' of github.com:sahlberg/libiscsi
2013-07-20 14:06:05 -07:00
Ronnie Sahlberg
c172e12968
UTILS: Check that an iscsi url was provided on the command line before strdup()ing it
2013-07-20 09:01:38 -07:00
Peter Lieven
bb2aca580c
iscsi-ls: add --url parameter
...
Signed-off-by: Peter Lieven <pl@kamp.de >
2013-07-18 11:33:35 +02:00
Ronnie Sahlberg
c0d1c122c3
ISCSI-LS : Change from popt to the slightly less portable getopt_long
...
win32 and amiga/aros does not have getopt_long() so we will need a
replacement for the platforms where getopt_long() is missing.
2013-04-21 09:44:23 -07:00
Ronnie Sahlberg
402653b9f3
portability updates
...
add check if ipv6/sockaddr_in6 is availavble or not
add check for poll.h and only include when available
add includes for AROS
2013-04-18 19:43:36 -07:00
Bernhard Kohl
219533dc7b
Returned buffers from poptGetArgs() are free()ed in poptFreeContext()
...
Calling "free(url);" causes a core dump in glibc-2.15.
Signed-off-by: Bernhard Kohl <bernhard.kohl@gmx.net >
2012-11-18 14:12:30 -08:00
Ronnie Sahlberg
9eb26a368d
Fix compiler warnings related to 'const'
2012-11-11 10:03:45 -08:00
Ronnie Sahlberg
50e7c682bb
Add a logging subsystem and change all DPRINTF to ISCSI_LOG
...
Add a mechanism where we can set a logging subsystem that libiscsi can use.
Create an example 'log to stderr' that utilities can use for convenience.
2012-11-07 06:34:38 -08:00
Peter Lieven
83ac22abbb
Fix memleaks in iscsi-ls, iscsi-inq & iscsi-readcapacity16
2012-10-27 16:18:50 +02:00
Peter Lieven
4cb845477d
Add debugging framework
...
This patch adds a user configurable debug level. For testing
it includes connection info and reporting errors.
2012-10-18 10:36:26 +02:00
Ronnie Sahlberg
116af01156
TYPO: Change periperal_device_type to just device_type
...
but leave the old name as a define for backward compatibility
2012-09-03 09:45:59 -07:00
Ronnie Sahlberg
b7f342906f
Change to proper default IQN names for the iscsi-ls/-inq utilities
...
Change the default iqn name for the utilities to
iqn.2007-10.com.github:sahlberg:libiscsi:iscsi-ls/-inq
2012-08-10 10:17:47 +10:00
Ronnie Sahlberg
213918a2f3
LS --SHOW-LUNS Dont treat NOT_READY/MEDIUM_NOT_PRESENT as an error
...
Detect this sensecode and just print (No media) for that LUN
2012-07-10 16:50:16 +10:00
Ronnie Sahlberg
50594830bd
Task Management. When we abort a task or a task set, or reset the lun or target
...
we must also cancel all active tasks.
This will trigger all affected tasks to have their callback invoked with
SCSI_STATUS_CANCELLED
2012-03-10 12:12:47 +11:00
Ronnie Sahlberg
7b5ff1095c
Improve help/usage strings for iscsi-ls and iscsi-inq
...
For help output, also print the syntax for the iscsi url required.
2011-01-09 10:36:53 +11:00
Ronnie Sahlberg
b2c4bdcd43
iscsi-ls: Destroy the iscsi_url when exiting.
2011-01-09 09:51:26 +11:00
Ronnie Sahlberg
827cf9af05
iscsi-ls --show-luns: We need to remember the username/password used
...
during the initial discovery login so we can use it again when we do
the normal logins to do inquiry/readcapacity for --show-luns
2011-01-03 18:16:40 +11:00
Ronnie Sahlberg
9ddce8dc24
Replace bzero() with memset()
2011-01-03 15:35:36 +11:00
Ronnie Sahlberg
77f1440b65
iscsi-ls: Use the helper function to parse the Portal URL
...
and add support for CHAP authentication during the discovery login.
2011-01-03 15:28:44 +11:00
Ronnie Sahlberg
190ea92810
Rework error messages generated when login fails to not repeat the same
...
thing "Failed to login to target" several times as the error cascades
up through the layers of callbacks.
2011-01-02 12:12:30 +11:00
Ronnie Sahlberg
32b39f62bd
Update iscsi-ls and iscsi-inq
...
to take the URLs in the form
iscsi://<host>[:<port>]
and
iscsi://<host>[:<port>]/<target-iqn>/<lun>
instead of specifying the values as --portal/--target/--lun
2010-12-05 08:57:10 +11:00
Ronnie Sahlberg
098bc5a9a7
Initial import of libiscsi
2010-12-05 08:24:57 +11:00