Age | Commit message (Collapse) | Author | Files | Lines |
|
pkgsrc/devel/netbsd-iscsi-target and
pkgsrc/devel/netbsd-iscsi-initiator packages.
|
|
Pay closer attention to the TSIH value that is assigned by the target -
rather than a simple (session id + 1) value, which cycles after 16 sessions
are used, use a central counter, and increment that whenever a TSIH is
apportioned. This fixes some problems for me with multiple targets being
ignored, and only the first target being used. Tested with the Microsoft
initiator, and the embryonic NetBSD initiator.
Use more enumerated types, rather than cpp definitions.
Use enumerated types also in preference to magic numbers.
In the iSCSI test harness, use the -t argument to specify a disk target
exported by the NetBSD iSCSI target. This allows us to test for the
situation outlined above.
Add my copyright to the test harness - there's no Intel code left anymore.
Modify the way initiator login and logout information is presented to the
user. This is only of concern to people who use this with the target in
non-detached (non-daemon) mode.
Get rid of the MODE_SENSE_10 and MODE_SELECT_10 cases in the disk switch,
since they do not return responses in the correct format yet.
|
|
version:
+ only use AI_NUMERICSERV if it exists - should help Dragonfly users
+ fix a problem whereby multiple targets could show up as a single target
under ssome circumstances.
|
|
Package changes:
+ fix the problem of the iSCSI target binding to the iSCSI control port
(860) instead of the target port (3260) - verified to work on NetBSD by
myself, and on FreeBSD by Mark Foster and Michael Reifenberger
+ re-enable the -p port command line argument on the target again
+ clean up some lint
+ sync with version 20070815 from NetBSD src/dist repository
pkgsrc changes
+ add DESTDIR support
|
|
Add IPv6 to target and test harness
Add -4 and -6 args to the iscsi-target and the test harness
Fix some debugging information
Fix bug in InitialR2T desired transfer length calculation (from yamt)
Fix bug in netmask calculation
Get rid of some magic constants
Add VPD 80 handling
Add RESERVE6 and RELEASE6 to target (Persistent Reservations In
partially supported - read keys, and report capabilities)
Use poll in preference to select, if we have it
|
|
|
|
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.
Fixes PR 35265, although I did not use the patch provided therein.
|
|
|
|
|
|
+ portability fix
+ make the maximum number of sessions handled by the target dynamic, and
default to 16, not 4
|
|
Changes since previous version:
+ include "compat.h" for a definition of the uuid_t structure - fixes
the build on Solaris (thanks to John Weekley for testing the fix).
This should also fix a problem in the bulk build.
+ rewrite the report_luns() function to something which is much easier
to read, and following Dan Carosone's and Matt Green's suggestions.
+ abstract the htobe64() function if it is available
+ tested only with little-endian initiators so far
+ bump version to 20060526
|
|
Adjust the data VPD returns, to work around a problem in the Cisco
initiator (used on Solaris 10 Update 1) - the initiator demands that a
UUID is returned, so give it one.
Add autoconf glue for that, and a compat uuid_create(3) and
uuid_to_string(3).
This still spews a lot of output via the target's syslog, but persevere,
since it does actually make the target work with the Solaris initiator:
solaris10# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1d0 <DEFAULT cyl 29728 alt 2 hd 64 sec 63>
/pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0
1. c2t5d0 <DEFAULT cyl 96 alt 2 hd 64 sec 32>
/iscsi/disk@0000iqn.1994-04.org.netbsd.iscsi-target%3Atarget00001,0
Specify disk (enter its number): ^D
solaris10# df -k /mnt
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c2t5d0s0 91407 1041 81226 2% /mnt
solaris10# uname -a
SunOS solaris10 5.10 Generic_118844-26 i86pc i386 i86pc
solaris10#
|
|
Changes since previous version:
+ Some minor formatting cleanup in the header files.
+ Properly pad the names with spaces (with thanks to Bill Studenmund)
+ Use the official T10 vendor name, "NetBSD".
+ Minor cleanup in the INQUIRY command
+ Rather than just punting on the REPORT LUNs SCSI command, emulate it
properly. This change makes the target work with the Solaris initiator:
AVAILABLE DISK SELECTIONS:
0. c1d0 <DEFAULT cyl 29728 alt 2 hd 64 sec 63>
/pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0
1. c2t5d0 <DEFAULT cyl 97 alt 2 hd 64 sec 32>
/iscsi/disk@0000iqn.1994-04.org.netbsd.iscsi-target%3Atarget00001,0
Specify disk (enter its number): 1
|
|
|
|
with those 16 bit values.
Fixes NetBSD iSCSI target when running on Solaris 9 on Sparc.
|
|
on big-endian Solaris platforms.
|
|
Differences include better tracing functionality, and some internal
changes for some functions returning boolean values.
The target now runs again on my big-endian UltrasparcIIi Solaris 9
machine.
|
|
|
|
to pick up portability mods.
Notable changes in this version:
+ now runs on FreeBSD 6.0 (thanks to F. Senault)
+ now runs on Solaris 9
+ Vital Product Data part of INQUIRY SCSI command handling added (to
appease the Solaris initiator, untested as yet, due to Solaris 10
update 1/06 not running on my Ultrasparc hardware).
|
|
developer is officially maintaining the package.
The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list). Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
|
|
Differences from previous version:
+ when looking for the target name supplied by the initiator during full-phase
login, break out of the loop immediately a match is found.
+ only syslog information if it's available
+ Present multiple targets properly
+ Check that the initiator address is allowed to discover targets.
+ Log a LOG_INFO error if an initiator attempts to discover targets it
shouldn't be.
|
|
20060209. This is taken from the NetBSD src/dist/iscsi tree.
iSCSI is an IETF standard (RFC 3720) for remote access to block-level
storage. It can be thought of as similar to NFS, except that an NFS
server exports files; the iSCSI target exports blocks to the iSCSI
initiators, which are the clients.
To set up the target, you need to edit the /etc/iscsi/targets file.
It has a certain layout, to provide a means of (a) mirroring and (b)
combining multiple areas to present one large contiguous area of
storage. This can be multiply-layered.
This package will replace the earlier intel-iscsi package, on which it is
based.
|