| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
The wiki is down and probably dead for good. This removes a bad
link to it.
|
|
|
|
|
| |
There is a new module, libiscsi_tcp, that is installed. This
updates the README.
|
|
|
|
|
|
|
| |
The event code does not belong in the mgmt ipc code, because
the event code now handles mgmt ipc, requests, actor events,
isns events, kernel ipc events. This moves the code to a new
file.
|
|
|
|
|
|
| |
After handling an event we should flush the sysfs cache because
the device links could change or the attr values could change due
to handling the event.
|
|
|
|
| |
Update version to 871.
|
|
|
|
|
|
| |
When the offload iface settings changed the doc page got
misedited. This should fix it and add some info on what
the hw address is.
|
|
|
|
|
| |
The connection failed message did not say which connection
failed. This has it print out the portal and a strerror value.
|
|
|
|
| |
When doing a make notify user that iscsistart was built.
|
|
|
|
| |
This has us use a safer strlcpy instead of strncpy when we can.
|
|
|
|
|
| |
We messed up strncat in so many different ways that strlat could
fix. This patch converts the userspace uses of strncat to strlcat.
|
|
|
|
|
|
|
|
| |
Separate out the build of "kernel:" and "user:" targets.
[Mike please revisit the @echo output if we need anything added]
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
|
|
|
|
| |
Fix compat patch that was broke from the eh timed out patch.
|
|
|
|
|
|
|
| |
Merge upstream fix for command timeout oops
(iscsi command does not oops, but if a command from another
driver timesout that will oops, because iscsi was missetting
the default transportt to its time out handler).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Patch and mail from Hans De Goede:
Hi,
While testing I noticed that "iscsiadmin -m fw" does not work properly
on newer
(rawhide atleast) kernels, the attached patch (already applied to the
Fedora
devel packages) fixes this.
Regards,
Hans
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From Hans De Goede
Hi All,
While testing I noticed that idbm_lock() uses exit when it cannot lock,
leading
to interesting effect when using it from libiscsi, when typing "import
libiscsi" in python as normal user, my entire python interpreter exited,
not good.
The attached patch instead returns an error code, and fixes all callers
to
check this.
Regards,
Hans
|
|
|
|
|
|
|
|
|
|
| |
This fixes a regression with
45160e00347fa48c0faf7bbd376fe220212bc0a2
(not in any open-iscsi.org version), where the
password length fields were not getting set
so passwords could not get reset and could not
get passed to iscsid correctly (iscsid would then
not try chap).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Users may want to install the userspace tools but
use the distro kernel modules. This adds a
make user
to build the userspace tools. And it adds a
make user_install
to install the userspace tools.
|
|
|
|
| |
pI4/pI6 was added 2.6.29. This patch just adds some ifdefs.
|
|
|
|
|
| |
Patch was not completely made to apply from the kernel dir. This
fixes the scsi_transport_iscsi.c patch application error.
|
|
|
|
| |
Add 2.6.14-19-compat support.
|
|
|
|
| |
Add 2.6.20-23 compat
|
|
|
|
| |
Add 2.6.24-25 compat
|
|
|
|
| |
Add 2.6.26 compat
|
|
|
|
|
|
| |
Add 2.6.27 compat
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
|
|
|
|
|
| |
This takes the iscsi modules that are planned for 2.6.29
and adds them to the kernel dir.
|
|
|
|
|
|
|
|
|
|
|
| |
rec_info
From Hans De Goede:
fix for idbm_rec_update_param, to update the value string of the
matching rec_info. Not doing this does not cause any issues in the
current use of this method, but still it seems better to me to update
this.
|
|
|
|
|
|
|
| |
This updates the transport handle when we do the handle check,
so if the module is unloaded we pick up the new value.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If you run
iscsiadm -m iface -P 1
or
iscsiadm -m iface -I $my_iface -P 1
we print the iface info and if possible the host number and state
(only for offload hbas).
The P2 level will print the session running through a iface.
The P3 level will print the negotiated iscsi params for each session.
The P4 level will print the scsi devices accessed through each
session.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If bnx2i and cxgb3i do a scsi_host per host device, we need to add the
iface initiator port settings on the session, so we can create
multiple initiator ports (each with different inames) per
device/scsi_host.
The current iname reflects that qla4xxx can have one iname per hba, and
we were
allocating a host per session for software. The iname on the host will
remain so we can export and set the hba level qla4xxx setting.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
|
|
|
|
|
|
|
|
|
| |
The default bnx2i iface is not going to be useful, because
we are going to have to set the ipaddress of each bnx2i
port and so there cannot be a generic iface with only
a transport name setting.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable setting of the ip/mac address for iscsi traffic on a network interface via iface files.
The format of the iface files is:
iface.transport_name = <transport name>
iface.net_ifacename = <ethX>
iface.ipaddress = <ip adress>
iface.hwaddress = <mac adress>
This patch is based on the master branch of the git tree.
Signed-off-by: Karen Xie <kxie@chelsio.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
|
|
|
|
|
|
|
|
|
| |
added new transport cxgb3i.
This patch is based on the master branch of the git tree.
Signed-off-by: Karen Xie <kxie@chelsio.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
|
|
|
|
|
|
|
|
| |
We were unconditionally using the time2wait value when we should only
use it if we are not erl0 and it is set or if the response code is
2 or 3.
This fixes a bug that occurs when running with the Astute target.
|
|
|
|
|
|
|
| |
If the strto* functions returned the max than it could be
valid value and the sysfs code would have returned error.
The man pages said to set errno then check it. For the get
int function I just used atoi.
|
|
|
|
|
|
|
|
| |
I added a stdint include so that it would be easier
to compile userspace apps including iscsi_proto.h, but
that breaks the kernel compilation. Since this iscsi_proto.h
is only used in open-iscsi releases I am just adding
a ifdef __KERNEL__.
|
|
|
|
|
|
|
|
| |
Commands that printed out records were mixing up the ordering.
This just has us use alphasort since it is safe for things like
uclibc and we do not really care about the alphabetical ordering
and are more concerned with targets/portals that are alike being
grouped together.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This had the iscaidm -m discovery -m fw comman handle
the --op arguments.
It also has it handle the -I argument, but it is a little strange,
and it is not fully supported. The problem is that we currently
do not assume that the net info in the firmware means that we
want to bind the session to a specific nic, so with the -I a user
can bind the session and the net info in the firmware is completely
ignored. We probably need an extra flag to indicate if the user
wants iscsiadm to setup ifaces based on the firmware info and
then also bind the session to them.
|
|
|
|
|
| |
If we want to see the discovery chap info we need to support
--show/-S.
|
|
|
|
|
| |
This just moves the idbm record field strings to a common
file, so idbm and fw_entry can share them.
|
|
|
|
| |
fw_get_entry's filepath is always NULL, so this patch removes it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
firmware
This adds the ibft sysfs module (iscsi_ibft) parsing support. It
was original done by Konard, but I have ported it to use the
sysfs.c helpers (add new ones and ported iscsi_sysfs.c too).
This patch also modifies iscsistart and iscsiadm to print/log
into all the portals found in firmware.
It also changes the behavior of
iscsiadm -m discovery -t fw
so that we create db records for what is found. It is not
fully hooked into the iface code, so it will use the
different inititor name, but it will not create a iface for
it (this means that if you have a record for the same portal that
is bound to a iface with a iname you can run into problems).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When printing multiple records like with
iscsiadm -m node -T my_target
(will dump all records for that target), the records are clumped
together and the only way to parse them is by assuming that the
node.name field indicates the beginning of a new record. This just
adds a
"# BEGIN RECORD"
at the begining and a
"# END RECORD"
at the end of a record.
|
|
|
|
|
|
|
|
| |
This has iscsid always retry the relogin if we have logged
in previously. This also fixes a problem where for the initial
login we retry too much (for reopen cnt) when we just want to try
once for fatal errors like where the target is not there
or the chap values are bad.
|
| |
|
|
|
|
| |
Signed-off-by: Erez Zilber <erezzi.list@gmail.com>
|
|
|
|
|
|
|
| |
Some changes that were made in iscsi_discovery were
not reflected in the docs.
Signed-off-by: Erez Zilber <erezzi.list@gmail.com>
|
|
|
|
|
| |
A log_error message had a extra "," which was causing compile
warnings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hi Make,
I've been bitten numerous times now by iscsiadm hanging when run as normal user
(it spins trying to create the lock, which will never succeed as it simple
misses the rights todo so).
I plan on including the attached patch in the new rawhide / F-10 package with
the new initscripts I'm working on. Please scream loudly if you object against
this patch.
Regards,
Hans
p.s.
If we go ahead with this patch I assume you will take care of getting it upstream.
|
|
|
|
| |
data corruption fix broke compat patches.
|
|
|
|
| |
data corruption fix broke compat patches.
|