Commit Graph

51 Commits

Author SHA1 Message Date
joerg
93f9555bb0 Add __printflike where needed. Fix various format string issues. 2012-03-15 04:06:54 +00:00
mbalmer
b2d484f7cb Fix typos (in comments). 2012-02-17 12:08:12 +00:00
wrstuden
2f786af8b7 Tweak white space so I get my annual commit. 2012-01-01 01:19:20 +00:00
agc
0c1bafa6f0 include inttypes.h to get the fixed size integer types - from Gregor Riepl 2011-12-14 07:20:31 +00:00
cheusov
3e8537647d Fix segfault when read(2) returns -1 2011-11-05 00:17:19 +00:00
wiz
4165ef4b81 Use standard section names. 2011-11-02 20:26:03 +00:00
yamt
ed36af787f fix a function prototype 2011-11-02 16:45:00 +00:00
sborrill
91b69c9f1d Bump version number to 20111006 2011-10-06 13:06:14 +00:00
sborrill
c8be037fd1 Provide function in libiscsi to return the compile-time limit on number of
targets. Use this function in the initiator, to ensure that the same limit
is used throughout (i.e. stop you attempting to compile the initiator with a
different limit to the library - the initiator uses the library for most of
its functionality).

If truncating the number of targets in the initiator, truncate it to the
correct amount, not half of what it should be.

Obey RFC3720 when determining targets. SendTargets=All MUST be supported
on a discovery session, and MUST NOT be supported on an operational session.
Previously, SendTargets=All was used both in the initial discovery session
and the later session. (from Daisuke Aoyama - author of istgt).
2011-10-06 13:05:28 +00:00
christos
e83f416f0e fix strict aliasing issues. 2011-08-17 09:24:23 +00:00
mrg
c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
sborrill
d66709fd74 Update HISTORY to show that iscsifs was in NetBSD 5.0 2011-02-22 17:15:55 +00:00
wiz
68b1a98bc8 Markup fix. 2011-02-22 14:23:37 +00:00
sborrill
75f0848d7d Note limitations of CHAP implementation in BUGS section. 2011-02-22 13:17:20 +00:00
sborrill
cbedc267b9 Skip target if TargetName is empty.
Use relevant TargetAddress, not just first one we happen to find.

Following improvement based on feedback from Daisuke Aoyama (author of istgt):
Handle NOP-OUT CmdSN and immediate bit.
Handle NOP-IN TransferTag=0xffffffff.
Interim solution for dealing with Underflow bit in iSCSI response.

iscsi-initiator now talks to istgt and other targets.

Remaining issues:
CHAP support will not work with most targets (maximum 16 octet challenge is
used, but other initiators use up to 1024). However, CHAP can now be
bypassed by not specifying a username.
2011-02-22 13:10:55 +00:00
sborrill
f7bc64b9db Retry read capacity. Device may not be ready on first access, so need to
wait and re-issue. From Daisuke Aoyama (author of istgt).
2011-02-22 13:04:31 +00:00
sborrill
c3d1c80eb5 Release 20110222 2011-02-22 13:00:05 +00:00
sborrill
83d439db6d Skip .orig files 2011-02-22 12:56:50 +00:00
sborrill
a96e357c94 Document -D option (discover LUNs).
iscsi-initiator was NOT in NetBSD 5.0.
2011-02-22 10:34:12 +00:00
sborrill
ff607cd15b man page claims that you can use auth type = none, but in reality this
didn't work (insisted on a username being given and then used, plus always
advertised CHAP to the target). Make initiator work as advertised (i.e.
defaults to auth type none and so don't require a username).

To use CHAP you should explicitly request CHAP:
iscsi-initiator -a chap -u user -h targetname /mountpoint

For backwards compatibility, if a username is given (-u) and no auth type
is specified (-a), it will default to CHAP, i.e. to use none, just give no
username:
iscsi-initiator -h targetname /mountpoint
2011-02-21 17:48:43 +00:00
sborrill
4fd58d7036 Remove hostname from pathname to storage in mount point.
This means /mnt/mytarget.domain.local/target0/storage is now
/mnt/target0/storage.

Rationale is as follows:
- The hostname used may vary (i.e. name vs FQDN vs IP) which can mess up
  mountpoints (especially across multiple hosts e.g. in a shared xen pool)
- Target name is given in the mount anyway so it is redundant

OK agc@
2011-02-21 17:24:19 +00:00
agc
78b8953550 manual page improvements, from enami tsugutomo, with thanks. 2011-02-20 03:56:36 +00:00
agc
ff0d414d6f Make sure we include <inttypes.h> if we have it. From Rumko. 2011-02-09 00:59:23 +00:00
he
44b7889673 Don't depend on shared library dependencies; we also need -lpuffs here.
This allows us to link statically.
2010-09-23 09:40:23 +00:00
sborrill
e6b018f13d Add missing -h flag to example 2010-08-03 10:24:39 +00:00
sborrill
57628e87d5 Regen with autoconf-2.63 and automake-1.11.1 because of man page changes.
Bump version to 20100416
2010-04-19 08:09:02 +00:00
sborrill
036951a68c Put .8 man pages in man8, not man1.
Add targets.5 to man5.
2010-04-19 08:05:36 +00:00
sborrill
a4abc2800d Add --version-info libtool flag so that libiscsi.so major/minor can be kept
in sync with that in shlib_version.
Add a note in shlib_version as a reminder to update lib/Makefile.am (and
from there lib/Makefile.in).
2010-04-15 20:56:32 +00:00
sborrill
2175ef1074 Add mkdist to build a distribution tarball based on the one in netpgp 2010-04-15 18:21:29 +00:00
agc
b97f222512 Regen to pick up the new version number 2010-04-15 05:27:45 +00:00
sborrill
5581d64437 Update to reflect current source files. iscsi.c is now protocol.c
and initiator.c has been moved from initiator to lib.
With these changes a standard ./configure && make build completes
2010-04-14 19:52:20 +00:00
yamt
9b49bad822 fix multi-thread problems wrt read/write buffer. PR/42651. 2010-03-03 00:44:51 +00:00
yamt
6ddbd5a7dd scsi_command_t: rather than putting cleanup code before every
return statememts, use goto to a single copy of the cleanup code.
no functional changes.
2010-01-25 13:45:16 +00:00
yamt
44972f323c - remove unnecessary and confusing initialization of sess->d.
- add an assertion.
2010-01-20 11:50:28 +00:00
yamt
6b4ef1c2b1 implement REPORT LUNS for non-zero LUNs correctly. 2010-01-20 10:33:08 +00:00
yamt
fdeb814270 add missing trailing newline chars to some of iscsi_err messages. 2010-01-20 00:58:49 +00:00
yamt
a33cb43688 target_transfer_data: fix an incorrect flattening of RETURN_NOT_EQUAL
in rev.1.2.
2010-01-20 00:51:51 +00:00
yamt
ddd2fd462c disk_write: report an error from target_transfer_data instead of
silently write garbage to the storage.
2010-01-20 00:50:09 +00:00
ghen
772bf29ffc Add missing newline. 2009-11-08 15:33:21 +00:00
agc
cb2414dfd1 Fix from Bert Kiers, also noted by jak - be consistent in naming the
key for the target hostname variable - it's "target hostname", not
"target host".
2009-07-23 04:32:13 +00:00
joerg
86a313cf0e .Xr takes exactly two arguments plus separators, so fix the use here. 2009-07-15 09:50:08 +00:00
agc
80afc5a9cd catch up with change of filename 2009-06-30 02:59:15 +00:00
agc
5e01dafb5c Portable iSCSI - snapshot of current sources/changes
+ moved lba2cdb into iscsi-initiator.c and cdb2lba into disk.c
+ moved iscsi.c to protocol.c
+ calculate zero bytes and bits in a different way, and fix a bug or two
  on the way
+ add the ability to trace different types of debug information from the
  initiatior as well as the target
2009-06-30 02:44:52 +00:00
agc
534fa80408 Put the OSD sources in their own directory 2009-06-25 13:48:42 +00:00
agc
b63649522c Update the external tree for new structure for reachover builds.
Add some iscsi-specific changes too:

Portable iSCSI - 20080207 to 20090622

+ Use modern autoconf
+ Add portable iSCSI initiator sources
+ New directory structure
+ Put OSD sources in their own directory
+ iscsi.h -> iscsiprotocol.h
+ add an iscsi.h for the new interface, and install it
+ globals_t -> iscsi_target_t
+ made an iscsi-target.h with all public functions in it
+ reformatted Intel license to fit in 80 columns
+ get rid of some abstractions which aren't needed any more
+ move over to a set of (name, value) tuples in target and initiator
+ add patch to set the target's StatSN at login time, from Gleb Kozyrev via
  Mark Foster
+ add manual page for libiscsi(3)
+ update libiscsi shared object major version to 2 to reflect the changes
  in API and ABI

More changes to come
2009-06-25 13:47:09 +00:00
agc
fc75e102bd Move source files from the reachover framework to the dist framework. 2009-06-22 14:44:12 +00:00
agc
39f224166c Be sure to install binaries into the correct BINDIR 2009-06-22 06:52:18 +00:00
agc
29b8a3d91c Add example files and rc.d script - taken from dist 2009-06-22 01:51:02 +00:00
agc
ef35af317f Add example configuration files 2009-06-21 21:23:46 +00:00
agc
2f24582978 Move the iSCSI target and initiator source across from dist/iscsi to
external/bsd/iscsi
2009-06-21 21:20:30 +00:00