mirror/scst/.git
12 years agoA better fix for incorrect size of port_data_t and mb[8] for MBC_PORT_NODE_NAME_LIST...
vlnb [Tue, 6 Oct 2009 19:00:25 +0000 (19:00 +0000)]
A better fix for incorrect size of port_data_t and mb[8] for MBC_PORT_NODE_NAME_LIST problem.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1185 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoCleanup
vlnb [Tue, 6 Oct 2009 17:43:55 +0000 (17:43 +0000)]
Cleanup

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1184 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoSome cleanups with a micro performance improvement as a nice side effect.
vlnb [Tue, 6 Oct 2009 14:32:17 +0000 (14:32 +0000)]
Some cleanups with a micro performance improvement as a nice side effect.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1182 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUpdated kernel versions 2.6.27.35, 2.6.30.8 and 2.6.31.1 to 2.6.27.36,
bvassche [Mon, 5 Oct 2009 19:49:39 +0000 (19:49 +0000)]
Updated kernel versions 2.6.27.35, 2.6.30.8 and 2.6.31.1 to 2.6.27.36,
2.6.30.9 and 2.6.31.2 respectively.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1181 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPatch from Richard Sharpe <realrichardsharpe@gmail.com> fixing incorrect SCST include...
vlnb [Mon, 5 Oct 2009 19:00:27 +0000 (19:00 +0000)]
Patch from Richard Sharpe <realrichardsharpe@gmail.com> fixing incorrect SCST include path

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1180 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixes for issues reported by Gal Rosen <galr@storwize.com>:
vlnb [Mon, 5 Oct 2009 18:38:15 +0000 (18:38 +0000)]
Fixes for issues reported by Gal Rosen <galr@storwize.com>:

1. Incorrect task management response delivery (with patch)

2. Possible use of non-initialized variable

3. Incorrect size of port_data_t and mb[8] for MBC_PORT_NODE_NAME_LIST

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1179 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoCompiles again on RHEL 5 / CentOS 5 with CONFIG_SCST_DEBUG enabled.
bvassche [Sun, 4 Oct 2009 08:31:04 +0000 (08:31 +0000)]
Compiles again on RHEL 5 / CentOS 5 with CONFIG_SCST_DEBUG enabled.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1176 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoApplies again properly to 2.6.26 kernel.
bvassche [Sun, 4 Oct 2009 07:22:43 +0000 (07:22 +0000)]
Applies again properly to 2.6.26 kernel.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1175 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the following checkpatch complaints:
bvassche [Sat, 3 Oct 2009 14:53:32 +0000 (14:53 +0000)]
Fixed the following checkpatch complaints:
- WARNING: labels should not be indented
- WARNING: braces {} are not necessary for single statement blocks

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1174 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the following checkpatch complaint:
bvassche [Sat, 3 Oct 2009 13:24:21 +0000 (13:24 +0000)]
Fixed the following checkpatch complaint:
ERROR: open brace '{' following struct go on the same line.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1173 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the following checkpatch complaint:
bvassche [Sat, 3 Oct 2009 13:16:03 +0000 (13:16 +0000)]
Fixed the following checkpatch complaint:
ERROR: return is not a function, parentheses are not required

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1172 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the following checkpatch complaints:
bvassche [Sat, 3 Oct 2009 13:12:18 +0000 (13:12 +0000)]
Fixed the following checkpatch complaints:
- ERROR: space required before the open parenthesis '('
- ERROR: "(foo*)" should be "(foo *)"
- ERROR: "foo * bar" should be "foo *bar"
- ERROR: code indent should use tabs where possible
Verified that the output of svn diff -x -w is empty for this commit.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1171 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed two occurrences of the following checkpatch complaint: ERROR: do not initialise...
bvassche [Sat, 3 Oct 2009 12:54:02 +0000 (12:54 +0000)]
Fixed two occurrences of the following checkpatch complaint: ERROR: do not initialise externals to 0 or NULL.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1170 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed checkpatch complaints about the positioning of braces:
bvassche [Sat, 3 Oct 2009 12:47:24 +0000 (12:47 +0000)]
Fixed checkpatch complaints about the positioning of braces:
- ERROR: else should follow close brace '}'
- ERROR: open brace '{' following struct go on the same line

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1169 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMore fixes for checkpatch complaints about whitespace:
bvassche [Sat, 3 Oct 2009 12:39:24 +0000 (12:39 +0000)]
More fixes for checkpatch complaints about whitespace:
- 2 ERROR: code indent should use tabs where possible
- 2 ERROR: trailing whitespace
Verified that the output of svn diff -x -w is empty for this commit.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1168 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the following checkpatch complaint:
bvassche [Sat, 3 Oct 2009 12:29:05 +0000 (12:29 +0000)]
Fixed the following checkpatch complaint:
ERROR: do not use assignment in if condition

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1167 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoRemoved trailing whitespace. Verified that the output of
bvassche [Sat, 3 Oct 2009 12:25:13 +0000 (12:25 +0000)]
Removed trailing whitespace. Verified that the output of
svn diff -x -w is empty for this commit.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1166 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoRemoved trailing whitespace from the source lines that are different
bvassche [Sat, 3 Oct 2009 12:15:33 +0000 (12:15 +0000)]
Removed trailing whitespace from the source lines that are different
from the qla2xxx driver source code in the 2.6.26 kernel. Verified
that the output of svn diff -x -w is empty for this commit.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1165 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the following checkpatch warning by removing a blank line:
bvassche [Sat, 3 Oct 2009 06:59:51 +0000 (06:59 +0000)]
Fixed the following checkpatch warning by removing a blank line:
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1164 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPossible NULL pointer dereference in vdisk_fsync() noticed by Andrzej Hajderek <andrz...
vlnb [Fri, 2 Oct 2009 12:36:41 +0000 (12:36 +0000)]
Possible NULL pointer dereference in vdisk_fsync() noticed by Andrzej Hajderek <andrzej@hajderek.pl> fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1162 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoForgotten copyrights updated
vlnb [Thu, 1 Oct 2009 11:01:11 +0000 (11:01 +0000)]
Forgotten copyrights updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1160 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - New scst_user IOCTL SCST_USER_PREALLOC_BUFFER added
vlnb [Wed, 30 Sep 2009 18:35:24 +0000 (18:35 +0000)]
 - New scst_user IOCTL SCST_USER_PREALLOC_BUFFER added
 - New scst_user option sgv_disable_clustered_pool added
 - fileio_tgt updated to use those new facilities
 - Scst_user docs updated
 - sgv_pool_get() and sgv_pool_put() made exported
 - AENs sense buffer override fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1159 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoLogging improved
vlnb [Wed, 30 Sep 2009 18:24:18 +0000 (18:24 +0000)]
Logging improved

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1158 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoExtended latency statistics
vlnb [Tue, 29 Sep 2009 20:35:22 +0000 (20:35 +0000)]
Extended latency statistics

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1157 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPatch from Smadar Gonen <smadar.gn@gmail.com> implementing extended latency statistics.
vlnb [Tue, 29 Sep 2009 20:30:17 +0000 (20:30 +0000)]
Patch from Smadar Gonen <smadar.gn@gmail.com> implementing extended latency statistics.

Intermediate commit, don't use it!

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1156 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- By default, don't issue a LIP after a group assignment change.
mgandalf [Mon, 28 Sep 2009 13:38:31 +0000 (13:38 +0000)]
- By default, don't issue a LIP after a group assignment change.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1155 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded more error injection code.
bvassche [Sat, 26 Sep 2009 15:51:58 +0000 (15:51 +0000)]
Added more error injection code.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1154 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded to repository.
bvassche [Sat, 26 Sep 2009 11:45:59 +0000 (11:45 +0000)]
Added to repository.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1152 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded kernel version 2.6.31.1.
bvassche [Sat, 26 Sep 2009 11:39:58 +0000 (11:39 +0000)]
Added kernel version 2.6.31.1.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1151 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the following checkpatch complaints:
bvassche [Sat, 26 Sep 2009 08:54:42 +0000 (08:54 +0000)]
Fixed the following checkpatch complaints:
- ERROR: open brace '{' following struct go on the same line
- ERROR: return is not a function, parentheses are not required
- ERROR: that open brace { should be on the previous line
- WARNING: %Ld/%Lu are not-standard C, use %lld/%llu
- WARNING: braces {} are not necessary for single statement blocks

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1150 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoConverted GNU-style to C99-style initializer list because checkpatch
bvassche [Sat, 26 Sep 2009 08:39:18 +0000 (08:39 +0000)]
Converted GNU-style to C99-style initializer list because checkpatch
does not recognize the former and complains about it.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1149 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed checkpatch complaints about whitespace.
bvassche [Sat, 26 Sep 2009 08:37:27 +0000 (08:37 +0000)]
Fixed checkpatch complaints about whitespace.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1148 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoNot completed documenting how to workaround Windows READ CAPACITY(16) bug completed
vlnb [Fri, 25 Sep 2009 19:39:25 +0000 (19:39 +0000)]
Not completed documenting how to workaround Windows READ CAPACITY(16) bug completed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1147 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - Sense handling cleanup
vlnb [Fri, 25 Sep 2009 18:57:10 +0000 (18:57 +0000)]
 - Sense handling cleanup
 - How to workaround Windows READ CAPACITY(16) bug documented

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1146 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUpdate for 2.6.31
vlnb [Fri, 25 Sep 2009 18:31:33 +0000 (18:31 +0000)]
Update for 2.6.31

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1145 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - Fixes wrong DMA data direction
vlnb [Fri, 25 Sep 2009 18:20:13 +0000 (18:20 +0000)]
 - Fixes wrong DMA data direction
 - Micro performance improvement

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1144 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Only retry creating a temp group name the max possible names
mgandalf [Fri, 25 Sep 2009 14:11:43 +0000 (14:11 +0000)]
- Only retry creating a temp group name the max possible names
  to prevent an infinite loop. Since we're using rand() here,
  it's possible we could exit the loop with no unique name.
  However, this is pretty unlikely considering thousands
  if temp group names would have to already exist.
- Fail out if we can't come up with a temp group name and just
  use the original specified.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1143 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Print a friendly warning if -issuelip (or it's config option) is used
mgandalf [Fri, 25 Sep 2009 14:00:08 +0000 (14:00 +0000)]
- Print a friendly warning if -issuelip (or it's config option) is used
  and the target drives lacks support for it.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1142 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Regenerate temp group name should the current one already exist.
mgandalf [Fri, 25 Sep 2009 13:56:06 +0000 (13:56 +0000)]
- Regenerate temp group name should the current one already exist.
- Include temp group renames in the change count.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1141 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed a typo in the documentation: replaced ipsrpdm by ibsrpdm.
bvassche [Fri, 25 Sep 2009 08:00:00 +0000 (08:00 +0000)]
Fixed a typo in the documentation: replaced ipsrpdm by ibsrpdm.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1140 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoOnly report that a command already got aborted when SCSI management
bvassche [Thu, 24 Sep 2009 18:42:22 +0000 (18:42 +0000)]
Only report that a command already got aborted when SCSI management
debugging has been enabled.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1139 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUpdated kernel versions 2.6.27.34 and 2.6.30.7 to 2.6.27.35 and 2.6.30.8 respectively.
bvassche [Thu, 24 Sep 2009 18:33:07 +0000 (18:33 +0000)]
Updated kernel versions 2.6.27.34 and 2.6.30.7 to 2.6.27.35 and 2.6.30.8 respectively.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1138 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoSpell fixes, including "restransmitting" noticed by Gal Rosen <galr@storwize.com>
vlnb [Wed, 23 Sep 2009 19:14:02 +0000 (19:14 +0000)]
Spell fixes, including "restransmitting" noticed by Gal Rosen <galr@storwize.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1137 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Update example scst.conf file to reflect the new [OPTIONS] section.
mgandalf [Wed, 23 Sep 2009 18:45:53 +0000 (18:45 +0000)]
- Update example scst.conf file to reflect the new [OPTIONS] section.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1136 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Minor cleanup to new -issuelip functionality.
mgandalf [Wed, 23 Sep 2009 18:05:47 +0000 (18:05 +0000)]
- Minor cleanup to new -issuelip functionality.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1135 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoChanges for 1.0.10
mgandalf [Wed, 23 Sep 2009 17:44:53 +0000 (17:44 +0000)]
Changes for 1.0.10

- Added new [OPTIONS] section to config file.
- Added new ISSUE_LIP option for fc targets to issue a LIP after group
  assignment changes.
- Added new KEEP_CONFIG option to keep all options when overwriting a
  configuration file with -writeconfig.
- General cleanup.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1134 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- If target-oriented access control mode is used, Default_ groups will first be created
mgandalf [Wed, 23 Sep 2009 15:39:08 +0000 (15:39 +0000)]
- If target-oriented access control mode is used, Default_ groups will first be created
  as temporary groups and later renamed.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1133 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Added items to the ToDo list.
mgandalf [Wed, 23 Sep 2009 15:00:29 +0000 (15:00 +0000)]
- Added items to the ToDo list.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1132 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Replace a device on a given LUN when applying the configuration instead of removing
mgandalf [Wed, 23 Sep 2009 14:58:19 +0000 (14:58 +0000)]
- Replace a device on a given LUN when applying the configuration instead of removing
  the old device and assigning the new one.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1131 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoExcluded qla2x00t from local build because compiling it is only possible after having...
bvassche [Wed, 23 Sep 2009 07:03:29 +0000 (07:03 +0000)]
Excluded qla2x00t from local build because compiling it is only possible after having modified the local kernel headers.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1130 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoBuilds again when CONFIG_SCST_DEBUG has not been defined.
bvassche [Wed, 23 Sep 2009 06:50:49 +0000 (06:50 +0000)]
Builds again when CONFIG_SCST_DEBUG has not been defined.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1129 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded error injection code: the kernel parameter processing_delay_in_us
bvassche [Tue, 22 Sep 2009 19:18:45 +0000 (19:18 +0000)]
Added error injection code: the kernel parameter processing_delay_in_us
allows to control by how much the srpt_completion() function (which runs
in interrupt context) will be delayed.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1128 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded qla2x00t to the nightly build.
bvassche [Tue, 22 Sep 2009 18:27:54 +0000 (18:27 +0000)]
Added qla2x00t to the nightly build.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1127 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMore whitespace-only changes that fix several checkpatch errors.
bvassche [Tue, 22 Sep 2009 18:26:33 +0000 (18:26 +0000)]
More whitespace-only changes that fix several checkpatch errors.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1126 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoRemoved trailing whitespace.
bvassche [Tue, 22 Sep 2009 18:07:18 +0000 (18:07 +0000)]
Removed trailing whitespace.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1125 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - Grammar fixes suggested by Richard Sharpe <realrichardsharpe@gmail.com>
vlnb [Tue, 22 Sep 2009 06:56:28 +0000 (06:56 +0000)]
 - Grammar fixes suggested by Richard Sharpe <realrichardsharpe@gmail.com>
 - Minor cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1124 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoSince it is normal that the SCST core calls srpt_xmit_response() for
bvassche [Mon, 21 Sep 2009 18:43:15 +0000 (18:43 +0000)]
Since it is normal that the SCST core calls srpt_xmit_response() for
a command that has already been aborted, changed the message that
reports this from an error message to an informational message.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1123 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUsers page added
vlnb [Mon, 21 Sep 2009 12:55:54 +0000 (12:55 +0000)]
Users page added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1122 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Added command-line option -j, which allows to use fio for measuring
bvassche [Sun, 20 Sep 2009 12:11:12 +0000 (12:11 +0000)]
- Added command-line option -j, which allows to use fio for measuring
  I/O times instead of dd.
- For asynchronous (buffered) write tests with dd, switched from
  sync-after-every-write to sync-at-end.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1121 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoIncorporate last patch submitted for task management retry.
zorko [Sat, 19 Sep 2009 20:18:03 +0000 (20:18 +0000)]
Incorporate last patch submitted for task management retry.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1120 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed typo in an error message.
bvassche [Sat, 19 Sep 2009 19:01:30 +0000 (19:01 +0000)]
Fixed typo in an error message.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1119 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPorted the OFED 1.5 commit http://www.openfabrics.org/git/?p=ofed_1_5/linux-2.6.git...
bvassche [Sat, 19 Sep 2009 18:22:22 +0000 (18:22 +0000)]
Ported the OFED 1.5 commit openfabrics.org/git/?p=ofed_1_5/linux-2.6.git;a=commitdiff;h=ce223537aeb05c9e4c36eab2b509fb98a33ba359:
replaced dma_*map* calls by ib_dma_*map* calls. Added the conversion
of dma_sync_single_for_device() to ib_dma_sync_single_for_device().
This only changes the behavior of SRPT for those IB interfaces whose
driver implements the ib_dma_mapping_ops operations.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1118 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoApplied a modified version of OFED commit http://www.openfabrics.org/git/?p=ofed_1_5...
bvassche [Sat, 19 Sep 2009 16:40:01 +0000 (16:40 +0000)]
Applied a modified version of OFED commit openfabrics.org/git/?p=ofed_1_5/linux-2.6.git;a=commitdiff;h=6b20b3fb9b51722f382d6bfe333ec5bb5c216e9f.
The OFED commit made a.o. ib_srpt.c compile on 2.6.30 and later kernels.
Although the SCST ib_srpt.c code already compiles on a 2.6.30 kernel, this
commit has been ported to SCST because the source code of the OFED
implementation is cleaner. This commit does not change any functionality
of SCST's SRPT.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1117 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoChanged a PRINT_ERROR() statement into a PRINT_INFO() statement because
bvassche [Fri, 18 Sep 2009 19:03:24 +0000 (19:03 +0000)]
Changed a PRINT_ERROR() statement into a PRINT_INFO() statement because
this statement is triggered during the normal logout / relogin procedure.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1116 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPotential fix for the following kernel bug report:
bvassche [Fri, 18 Sep 2009 18:58:55 +0000 (18:58 +0000)]
Potential fix for the following kernel bug report:

 ------------[ cut here ]------------
 ib_srpt: srpt_xmit_response: tag= 26 channel in bad state 2
 scst: ***ERROR***: Target driver ib_srpt xmit_response() returned fatal error
 ib_srpt: srpt_xmit_response: tag= 38 channel in bad state 2
 scst: ***ERROR***: Target driver ib_srpt xmit_response() returned fatal error
 ib_srpt: srpt_xmit_response: tag= 27 channel in bad state 2
<repeated many times>
 kernel BUG at /root/scst/scst/src/scst_targ.c:3089!
 invalid opcode: 0000 [1] SMP
 CPU 0
...
 RIP: 0010:[<ffffffffa04759f6>]  [<ffffffffa04759f6>] scst_tgt_cmd_done+0x26/0x30 [scst]
 RSP: 0018:ffff88039ad27b50  EFLAGS: 00010297
 RAX: 0000000000000200 RBX: ffff8803ad9c68f8 RCX: 0000000000000000
 RDX: 00000000ffffffff RSI: 0000000000000000 RDI: ffff8803ad9c68f8
 RBP: ffff88039ad27b50 R08: 0000000000000000 R09: 0000000000000000
 R10: ffff88039ad277c0 R11: ffff88041ad278cf R12: ffff8803c2972180
 R13: ffff88039ada0000 R14: 0000000000000001 R15: ffff8803fb00c2b0
 FS:  0000000000000000(0000) GS:ffffffff807dd000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
 CR2: 00007f9281e64000 CR3: 0000000000201000 CR4: 00000000000006e0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
 Process ib_cm/0 (pid: 8299, threadinfo ffff88039ad26000, task ffff88039ad40000)
 Stack:  ffff88039ad27b80 ffffffffa04c0c47 ffff88039a8db900 ffff8803c2972180
  ffff8803fb00c240 ffff8803fb00c284 ffff88039ad27bc0 ffffffffa04c0d93
  ffff88042a4959c0 ffff88042a9d7800 ffff88042544da00 ffff88042a9d7898
 Call Trace:
  [<ffffffffa04c0c47>] srpt_abort_scst_cmd+0xd7/0x160 [ib_srpt]
  [<ffffffffa04c0d93>] srpt_release_channel+0xc3/0x190 [ib_srpt]
  [<ffffffffa04c0e82>] srpt_find_and_release_channel+0x22/0x30 [ib_srpt]
  [<ffffffffa04c227d>] srpt_cm_handler+0x6d/0xbb8 [ib_srpt]
  [<ffffffff80247526>] ? try_to_wake_up+0x126/0x2f0
  [<ffffffff802476fd>] ? default_wake_function+0xd/0x10
  [<ffffffff80267106>] ?  autoremove_wake_function+0x16/0x40
  [<ffffffff8023c99a>] ? __wake_up_common+0x5a/0x90
  [<ffffffff8023dece>] ? __wake_up+0x4e/0x70
  [<ffffffff80263271>] ? __queue_work+0x41/0x50
  [<ffffffff8026331d>] ? queue_work_on+0x4d/0x60
  [<ffffffff8026344f>] ? queue_work+0x1f/0x30
  [<ffffffff8026350d>] ? queue_delayed_work+0x2d/0x40
  [<ffffffffa0373255>] ? wait_for_response+0xd5/0xe0 [ib_mad]
  [<ffffffffa04b4e07>] cm_process_work+0x27/0x130 [ib_cm]
  [<ffffffffa04b5cf1>] cm_drep_handler+0xf1/0x180 [ib_cm]
  [<ffffffffa04b7790>] ? cm_work_handler+0x0/0x1b8 [ib_cm]
  [<ffffffffa04b7895>] cm_work_handler+0x105/0x1b8 [ib_cm]
  [<ffffffffa04b7790>] ? cm_work_handler+0x0/0x1b8 [ib_cm]
  [<ffffffff802628c2>] run_workqueue+0xc2/0x1a0
  [<ffffffff80262bcf>] worker_thread+0xaf/0x130
  [<ffffffff802670f0>] ? autoremove_wake_function+0x0/0x40
  [<ffffffff80262b20>] ? worker_thread+0x0/0x130
  [<ffffffff80266cbe>] kthread+0x4e/0x90
  [<ffffffff80213c99>] child_rip+0xa/0x11
  [<ffffffff80266c70>] ? kthread+0x0/0x90
  [<ffffffff80213c8f>] ? child_rip+0x0/0x11
 Code: 00 00 00 00 00 55 48 89 e5 e8 a7 cc d9 df 83 7f 28 78 75 17 80 67 2d f7 c7 47 28 0d 00 00 00 ba 01 00 00 00 e8 8c fc ff ff c9 c3 <0f> 0b eb fe 66 0f 1f 44 00 00 55 48 89 e5 41 54 53 e8 74 cc d9
 RIP  [<ffffffffa04759f6>] scst_tgt_cmd_done+0x26/0x30 [scst]
  RSP <ffff88039ad27b50>
 ---[ end trace a7f20725e9471e16 ]---

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1115 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - More web fixes from Daniel Fernandes <dfernandes1978@hotmail.com>
vlnb [Fri, 18 Sep 2009 12:03:06 +0000 (12:03 +0000)]
 - More web fixes from Daniel Fernandes <dfernandes1978@hotmail.com>
 - sponsorship.html removed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1114 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPatch from Mark Buechler <mark.buechler@gmail.com> adding io_context patch for 2...
vlnb [Fri, 18 Sep 2009 10:33:12 +0000 (10:33 +0000)]
Patch from Mark Buechler <mark.buechler@gmail.com> adding io_context patch for 2.6.26 kernel

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1113 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMicrocosmetics
vlnb [Fri, 18 Sep 2009 10:30:15 +0000 (10:30 +0000)]
Microcosmetics

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1112 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - Web fixes from Daniel Fernandes <dfernandes1978@hotmail.com> (thanks!)
vlnb [Fri, 18 Sep 2009 10:25:33 +0000 (10:25 +0000)]
 - Web fixes from Daniel Fernandes <dfernandes1978@hotmail.com> (thanks!)

 - The comparison page updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1111 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Remove unused references to handler IOs that don't exist and cleanup the write
mgandalf [Thu, 17 Sep 2009 21:04:39 +0000 (21:04 +0000)]
- Remove unused references to handler IOs that don't exist and cleanup the write
  configuration function to only write vdisk and vcdrom devices. All other devices
  are automatically claimed by their handler module. I'm not sure how this will work
  with devices we wish to change handlers for.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1110 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Add the ability to specify options (ie: READ_ONLY) in assignments in scst.conf.
mgandalf [Thu, 17 Sep 2009 20:32:35 +0000 (20:32 +0000)]
- Add the ability to specify options (ie: READ_ONLY) in assignments in scst.conf.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1109 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoqla2x00t HOWTO updated
vlnb [Thu, 17 Sep 2009 20:10:11 +0000 (20:10 +0000)]
qla2x00t HOWTO updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1108 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoTypo fixed
vlnb [Thu, 17 Sep 2009 19:58:38 +0000 (19:58 +0000)]
Typo fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1107 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoKernels below 2.6.26 not supported anymore by qla2x00t, sorry.
vlnb [Thu, 17 Sep 2009 19:57:04 +0000 (19:57 +0000)]
Kernels below 2.6.26 not supported anymore by qla2x00t, sorry.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1106 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Move a user from one group to another when applying the configuration instead
mgandalf [Thu, 17 Sep 2009 18:38:23 +0000 (18:38 +0000)]
- Move a user from one group to another when applying the configuration instead
  of deleting from one and adding to another the same user.
- Minor fix to readConfig() which wasn't fully allowing for empty groups.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1105 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoSupport for 24xx+ QLA chips added to qla2x00t. So far only for 2.6.26+ kernels.
vlnb [Thu, 17 Sep 2009 17:44:07 +0000 (17:44 +0000)]
Support for 24xx+ QLA chips added to qla2x00t. So far only for 2.6.26+ kernels.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1104 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Added the ability to specify options for -assigndev and -replacedev,
mgandalf [Thu, 17 Sep 2009 16:33:24 +0000 (16:33 +0000)]
- Added the ability to specify options for -assigndev and -replacedev,
  mainly READ_ONLY for now.
- Updated module to accept more than one option for assignDeviceToGroup() and
  replaceDeviceInGroup().
- Incremented module version number and renamed module directory to reflect it.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1103 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Added -moveuser, -renamegroup and -ReplaceDev options and necessary -to argument.
mgandalf [Wed, 16 Sep 2009 19:28:13 +0000 (19:28 +0000)]
- Added -moveuser, -renamegroup and -ReplaceDev options and necessary -to argument.
- Fixed minor bug in new renameGroup() method in SCST::SCST.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1102 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Adds read only flag support to assignDeviceToGroup() and
mgandalf [Wed, 16 Sep 2009 18:25:40 +0000 (18:25 +0000)]
- Adds read only flag support to assignDeviceToGroup() and
  replaceDeviceInGroup().

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1101 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Adds rename_group functionality with renameGroup().
mgandalf [Wed, 16 Sep 2009 18:14:32 +0000 (18:14 +0000)]
- Adds rename_group functionality with renameGroup().

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1100 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMore consistency in TM functions logging.
vlnb [Wed, 16 Sep 2009 18:08:02 +0000 (18:08 +0000)]
More consistency in TM functions logging.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1099 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Added support for new move and replace commands with moveUser()
mgandalf [Wed, 16 Sep 2009 18:05:06 +0000 (18:05 +0000)]
- Added support for new move and replace commands with moveUser()
  and replaceDeviceInGroup() and increased the min. SCST supported
  version to 1.0.2.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1098 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoReplaced kernel versions 2.6.27.32 and 2.6.30.6 by 2.6.27.34 and 2.6.30.7 respectively.
bvassche [Wed, 16 Sep 2009 10:44:38 +0000 (10:44 +0000)]
Replaced kernel versions 2.6.27.32 and 2.6.30.6 by 2.6.27.34 and 2.6.30.7 respectively.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1097 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMicrocleanup to log TM functions always in decimal.
vlnb [Tue, 15 Sep 2009 17:57:16 +0000 (17:57 +0000)]
Microcleanup to log TM functions always in decimal.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1095 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoSize of external names, like initiator names, increased.
vlnb [Mon, 14 Sep 2009 18:08:18 +0000 (18:08 +0000)]
Size of external names, like initiator names, increased.

Thanks to savik@alumni.technion.ac.il for pointing on it.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1094 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMinor cleanup
vlnb [Mon, 14 Sep 2009 18:02:11 +0000 (18:02 +0000)]
Minor cleanup

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1093 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoSmall cleanup: don't do anything if on resync_size command size of the device remaine...
vlnb [Mon, 14 Sep 2009 17:47:47 +0000 (17:47 +0000)]
Small cleanup: don't do anything if on resync_size command size of the device remained the same

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1091 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Removed blank lines from kernel log.
bvassche [Sun, 13 Sep 2009 19:13:31 +0000 (19:13 +0000)]
- Removed blank lines from kernel log.
- When a session is being released, it is now logged why.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1090 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Renamed PFX macro to LOG_PFX such that it is recognized by the
bvassche [Sun, 13 Sep 2009 18:15:05 +0000 (18:15 +0000)]
- Renamed PFX macro to LOG_PFX such that it is recognized by the
  PRINT_INFO() and related macro's.
- Replaced printk(KERN_INFO PFX and printk(KERN_ERROR PFX by
  PRINT_INFO( and PRINT_ERROR( respectively.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1089 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMade sure that there is only a single blank line before scsi_end_async() in the outpu...
bvassche [Thu, 10 Sep 2009 18:26:06 +0000 (18:26 +0000)]
Made sure that there is only a single blank line before scsi_end_async() in the output of scripts/generate-kernel-patch.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1088 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoReplaced kernel versions 2.6.27.31 and 2.6.30.5 by 2.6.27.32 and 2.6.30.6 respectively.
bvassche [Wed, 9 Sep 2009 18:30:50 +0000 (18:30 +0000)]
Replaced kernel versions 2.6.27.31 and 2.6.30.5 by 2.6.27.32 and 2.6.30.6 respectively.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1085 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMaintainer's address added
vlnb [Tue, 8 Sep 2009 11:31:48 +0000 (11:31 +0000)]
Maintainer's address added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1083 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoDon't try and stop a kernel thread that hasn't started- this will fix some
zorko [Tue, 8 Sep 2009 01:45:52 +0000 (01:45 +0000)]
Don't try and stop a kernel thread that hasn't started- this will fix some
reported oopses.

Fix residual setting for 21XX/22XX/23XX cards. Oops.

Return at least *some* kind of WWN. Apparently there are still enough
cards floating around that have scrambled NVRAM that this is a problem-
at least for me.

More meaningless format changes.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1082 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoIf we're running newer than 3.0.16 firmware and are in target mode, tell
zorko [Tue, 8 Sep 2009 01:40:39 +0000 (01:40 +0000)]
If we're running newer than 3.0.16 firmware and are in target mode, tell
the firmware to not automatically issue a PRLI after a PLOGI. This should
solve the problem of being in N-port topology where we have to issue a PLOGI
which by default is followed by a PRLI, which makes us an illegal target.

This is not the most ideal fix in that it breaks the initiator side of
initiator/target mode for any local topology disks.

Various other meaningless formattting changes.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1081 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoRemove obsolete documentation.
zorko [Tue, 8 Sep 2009 01:36:17 +0000 (01:36 +0000)]
Remove obsolete documentation.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1080 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoThe patch below fixes occurrences of the following recently introduced
vlnb [Mon, 7 Sep 2009 12:09:16 +0000 (12:09 +0000)]
The patch below fixes occurrences of the following recently introduced
checkpatch warning: "do not use assignment in if condition".

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

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1079 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMicrocleanup to combine the vars alltogether
vlnb [Mon, 7 Sep 2009 12:02:47 +0000 (12:02 +0000)]
Microcleanup to combine the vars alltogether

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1078 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoDo not only remove references of SCSI_EXEC_REQ_FIFO_DEFINED / SCST_IO_CONTEXT
bvassche [Sun, 6 Sep 2009 12:02:49 +0000 (12:02 +0000)]
Do not only remove references of SCSI_EXEC_REQ_FIFO_DEFINED / SCST_IO_CONTEXT
but also their definition.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1077 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoRefinements / bug fixes of the changes introduced in the previous commit:
bvassche [Sun, 6 Sep 2009 11:09:21 +0000 (11:09 +0000)]
Refinements / bug fixes of the changes introduced in the previous commit:
- Only replace sBUG/sBUG_ON by BUG/BUG_ON when this macro is being used, not
  in its definition.
- Fixed bugs in algorithm for preserving the original code during a sparse run.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1076 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoBump up SCSI version to SCSI-3
vlnb [Fri, 4 Sep 2009 15:49:41 +0000 (15:49 +0000)]
Bump up SCSI version to SCSI-3

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1075 d57e44dd-8a1f-0410-8b47-8ef2f437770f