Commit Graph

806 Commits

Author SHA1 Message Date
Bart Van Assche
72f5b47141 Another documentation update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@838 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 19:20:58 +00:00
Bart Van Assche
0f132124b9 Added more details.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@837 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 18:28:09 +00:00
Bart Van Assche
7340819a3f Clarified an error message.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@836 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 18:25:08 +00:00
Bart Van Assche
63bc07871d Added a variant of the patch for scripts/Makefile.lib.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@835 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 18:04:57 +00:00
Bart Van Assche
603d81dde4 Documented how to build SCST-SRPT against OFED.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@834 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 17:31:22 +00:00
Bart Van Assche
9b25c9c44c Updated to do file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@833 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 17:29:41 +00:00
Dotan Barak
3206819128 Fix various buglets that really were seriously bad and resync with FreeBSD tree.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@831 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 17:18:00 +00:00
Bart Van Assche
647f7febc9 Updated kernel revisions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@830 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-09 09:14:21 +00:00
Vladislav Bolkhovitin
7b199bfe16 Small web mistake fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@829 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-08 17:38:12 +00:00
Vladislav Bolkhovitin
7b0da19ed1 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@828 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-08 17:35:44 +00:00
Vladislav Bolkhovitin
1060d45a1f Patch from frank zago <fzago@systemfabricworks.com> with some modifications. It exposes scst parameters scst_max_cmd_mem and scst_max_dev_cmd_mem as well as vdisk's parameters num_threads and scst_vdisk_ID visible through /sys/module/scst and /sys/module/scst_vdisk correspondingly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@827 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-08 10:35:24 +00:00
Andy Yan
de7c4222c9 1. Fixed bug - Task frame type setting.
2. Dead lock risk.
3. Null pointer may be used.
4. Alignment issue

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@826 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-08 05:40:38 +00:00
Dotan Barak
0dc942ca13 A lot of microchanges, but actually this means that the FreeBSD port,
the SCST port, and the non-SCST Feral port are all more or less in
sync. And apparently somewhat functional.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@825 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-07 01:52:56 +00:00
Vladislav Bolkhovitin
6425f39dc3 Unfortunately the latest InfiniBand software is not included in Linux
distributions but must be installed separately via the OFED package. The patch
below makes it easier to compile SCST-SRPT with the OFED kernel headers by
disabling the backported <linux/scatterlist.h> macro's when compiling with
OFED kernel headers. OFED namely has its own set of backported macro's. OFED
kernel headers are detected via the preprocessor symbol
__BACKPORT_LINUX_SCATTERLIST_H_TO_2_6_23__, which is defined in the OFED
header file <linux/scatterlist.h> only. This patch does not have any effect
when compiling SCST on a system where OFED has not been installed.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@824 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-05 18:58:06 +00:00
Bart Van Assche
69d545d77d Added the equivalent of #undef BACKPORT_LINUX_WORKQUEUE_TO_2_6_19.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@823 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 20:03:48 +00:00
Bart Van Assche
52d50a5ea7 Removed one OFED installation test because on some distro's it triggers false complaints.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@822 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 20:02:30 +00:00
Bart Van Assche
00aa42706f Fixed checkpatch complaints about whitespace (indentation should use tabs / trailing whitespace).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@821 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 19:07:22 +00:00
Bart Van Assche
c521377609 ib_srpt.c compiles now on RHEL 5.x systems where OFED has been installed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@820 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 18:57:04 +00:00
Bart Van Assche
2f1acab33e Prepend the OFED kernel header paths before the regular kernel header path when compiling on a system where OFED has been installed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@819 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 18:55:50 +00:00
Bart Van Assche
7e3360b247 Updated kernel versions to latest stable kernels.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@818 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 12:06:40 +00:00
Bart Van Assche
90e914fd25 - Removed comments that referred to the 2.4 module build system.
- Simplified this Makefile: the target all now directly refers to
  src/Module.symvers. Removed the phony target Module.symvers.
- An error message is now printed if OFED has been built with srpt=y.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@817 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-02 12:38:33 +00:00
Vladislav Bolkhovitin
9f2f2e7bd1 - Cleanups and improvements in handling various special commands properties
- REQUEST SENSE handling improved
 - READ CAPACITY(16) handling improved
 - New write_medium member added to scst_user's scst_user_scsi_cmd_reply_parse
 - scst_user docs updated
 - Other minot cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-01 19:26:10 +00:00
Bart Van Assche
19ab352393 Made building against OFED more robust.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@815 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-01 19:12:14 +00:00
Bart Van Assche
8f7f3d64cc Added support for compiling scst-srpt on a system where the OFED InfiniBand
kernel modules have been installed.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@814 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-01 09:24:47 +00:00
Vladislav Bolkhovitin
1051eddac7 - Fixes incorrect initiators.allow matching. Reported and tested by Dimitri Puzin <max@psycast.de>.
- Fixes handling of tab character during parsing of initiators.allow and initiators.deny files
 - IET part of the version updated
 - TAGS updated
 - Comments in scst_targ.c about long ago gone scst_unregister_session_ex() fixed



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@812 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-29 11:29:51 +00:00
Vladislav Bolkhovitin
1d96eaaa0b Cersions and web updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@811 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-29 11:12:43 +00:00
Vladislav Bolkhovitin
6179497d51 Web updates, Piwik code added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@810 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-28 18:11:36 +00:00
Bart Van Assche
904a0ca3b6 Report a skipped nightly build in a status file instead of by echoing text, such that the cron e-mail reporting is not triggered by skipped nightly builds.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@809 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-28 11:04:07 +00:00
Bart Van Assche
4a4e78604b Switched from 2.6.29.1 to 2.6.29.2.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@808 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-28 11:02:48 +00:00
Vladislav Bolkhovitin
dc99e60a1b Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@807 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-27 21:01:09 +00:00
Mark Buechler
9f0161b78d - Minor change - Change 'since' to 'for' in ChangeLog so the version isn't misleading.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@806 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-27 19:53:10 +00:00
Vladislav Bolkhovitin
f572d4ff79 - Copyrights updated.
- Other minor updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@803 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-27 19:01:28 +00:00
Bart Van Assche
67d54eafc8 Modified a two-line preprocessor statement into a single-line statement and added a comment that explains why this has been done.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@801 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-26 18:06:10 +00:00
Bart Van Assche
c712d12f40 The function srpt_cm_req_recv() now returns an error code instead of 0
when an SRP login request is rejected. This fixes a memory leak: the
InfiniBand core (drivers/infiniband/core/cm.c) only calls cm_free_work()
when the registered cm_handler function, i.e. srpt_cm_req_recv()
returns an error code. This patch has been submitted by by Frank Zago.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@800 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-26 09:10:52 +00:00
Bart Van Assche
c3d3378bc2 Made show_login_info() work for InfiniBand HCA's with more than two
ports. show_login_info() produces the information that can be retrieved
from /sys/class/infiniband_srpt/srpt-*/login_info. Note: as of today
there do not yet exist any InfiniBand HCA's with more than two ports.
Thanks to Frank Zago for reporting this issue.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@799 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-26 08:39:06 +00:00
Vladislav Bolkhovitin
e822d1e8a0 Compatibility patch for pre-2.6.26 kernels added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@798 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-24 18:56:32 +00:00
Vladislav Bolkhovitin
22eb47e455 - Fixes BUG: scheduling while atomic
- Removes nested allocation, because MAX_LOCKDEP_SUBCLASSES isn't sufficiently high in many cases
 - Size for mempools for UAs and sense buffers



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@796 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-24 13:16:38 +00:00
Stanislaw Gruszka
cfb897c6c1 Reapply r689 (dropped in r742) to fix CentOS compilation. Thanks Smadar Gonen.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@795 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-23 19:52:51 +00:00
Stanislaw Gruszka
1bb5ee306a Rewrite way we disable target. We need to care for pending commands to free all
resources when user disable target mode. Currently we block receiving any new
commands from low level driver, wait for SCST to finish processing all queued
commands and then disable target mode in the device. This way we cope with all
possible races and lacks when target is disabled. Thanks to Smadar Gonen!


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@794 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-23 19:37:40 +00:00
Vladislav Bolkhovitin
102603f46d We can't mark sess as shutting down in close_conn(), because at that time it might have pending commands. Otherwise, in case of reinstatement it might lead to data corruption, because commands in being reinstated session can be executed after commands in the new session.
Found out by Hari Subramanian <hari@vmware.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@792 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-21 18:25:46 +00:00
Vladislav Bolkhovitin
4f6c39b81f Patches from Bart Van Assche <bart.vanassche@gmail.com>:
- Fix for trailing whitespaces
 - Fix for an error in the iSCSI-SCST howto document.
 - Make SCST compile on RHEL 5.3

+ small qla2x00t README update



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@790 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-20 20:32:13 +00:00
Vladislav Bolkhovitin
a6f1ae6c17 Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@789 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-20 10:49:59 +00:00
Bart Van Assche
3e61c8b59e Bug fix: undefined macro's, e.g. RHEL_RELEASE_CODE, expand to the empty
string. The substitution for RHEL_RELEASE_CODE when it was not defined
was missing.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@788 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-18 09:12:39 +00:00
Mark Buechler
a727afe5e0 - Added -resyncdev option to work with the new SCST resync_size option.
- SCST.pm: Added resyncDevice()
- SCST.pm: General cleanup.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@784 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-16 17:16:40 +00:00
Vladislav Bolkhovitin
55f5cdee8d Web updates, mostly keywords and titles, thanks to Daniel Fernandes <dfernandes1978@hotmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@783 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-16 13:50:09 +00:00
Stanislaw Gruszka
8bf107d9fb Allow to compile with modern gcc-4.x compiler, which make some sophisticated
loop optimizations.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@782 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-16 11:57:46 +00:00
Dotan Barak
7863eed840 A bit of brushing up to put library like functions in isp_library.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@781 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 22:19:26 +00:00
Stanislaw Gruszka
a2664a8d2b - Disallow to pass command to low level driver when we user is disabling target
mode (protect by disable_sem).
- Fix parentheses in unlikely statement.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@780 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 20:25:20 +00:00
Stanislaw Gruszka
a85f34be79 Make debug messages more informative when more than one port are used.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@779 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 20:18:39 +00:00
Mark Buechler
f85d726683 Small fix..
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@778 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 20:06:27 +00:00