Vladislav Bolkhovitin
ab2bbd42fb
Some cleanups with a micro performance improvement as a nice side effect.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-06 14:32:17 +00:00
Bart Van Assche
c6b44e1320
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: http://svn.code.sf.net/p/scst/svn/trunk@1181 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-05 19:49:39 +00:00
Vladislav Bolkhovitin
cce4a66ab8
Patch from Richard Sharpe <realrichardsharpe@gmail.com> fixing incorrect SCST include path
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1180 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-05 19:00:27 +00:00
Vladislav Bolkhovitin
cd8443bb4d
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: http://svn.code.sf.net/p/scst/svn/trunk@1179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-05 18:38:15 +00:00
Bart Van Assche
77af82d2c3
Compiles again on RHEL 5 / CentOS 5 with CONFIG_SCST_DEBUG enabled.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1176 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-04 08:31:04 +00:00
Bart Van Assche
cd4162ddb9
Applies again properly to 2.6.26 kernel.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1175 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-04 07:22:43 +00:00
Bart Van Assche
420865b354
Fixed the following checkpatch complaints:
...
- WARNING: labels should not be indented
- WARNING: braces {} are not necessary for single statement blocks
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1174 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 14:53:32 +00:00
Bart Van Assche
6ad9eb54ef
Fixed the following checkpatch complaint:
...
ERROR: open brace '{' following struct go on the same line.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1173 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 13:24:21 +00:00
Bart Van Assche
8fb8e01e0c
Fixed the following checkpatch complaint:
...
ERROR: return is not a function, parentheses are not required
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1172 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 13:16:03 +00:00
Bart Van Assche
9218c65a0c
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: http://svn.code.sf.net/p/scst/svn/trunk@1171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 13:12:18 +00:00
Bart Van Assche
7c76bb1a7a
Fixed two occurrences of the following checkpatch complaint: ERROR: do not initialise externals to 0 or NULL.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1170 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:54:02 +00:00
Bart Van Assche
82e9aa5061
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: http://svn.code.sf.net/p/scst/svn/trunk@1169 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:47:24 +00:00
Bart Van Assche
b6b5b735c1
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: http://svn.code.sf.net/p/scst/svn/trunk@1168 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:39:24 +00:00
Bart Van Assche
2adf188f8b
Fixed the following checkpatch complaint:
...
ERROR: do not use assignment in if condition
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:29:05 +00:00
Bart Van Assche
db24922d55
Removed trailing whitespace. Verified that the output of
...
svn diff -x -w is empty for this commit.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1166 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:25:13 +00:00
Bart Van Assche
1ecb44a49a
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: http://svn.code.sf.net/p/scst/svn/trunk@1165 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:15:33 +00:00
Bart Van Assche
5afbc1222d
Fixed the following checkpatch warning by removing a blank line:
...
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1164 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 06:59:51 +00:00
Vladislav Bolkhovitin
c3a6195342
Possible NULL pointer dereference in vdisk_fsync() noticed by Andrzej Hajderek <andrzej@hajderek.pl> fixed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1162 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-02 12:36:41 +00:00
Vladislav Bolkhovitin
aaac2c07f9
Forgotten copyrights updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1160 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-01 11:01:11 +00:00
Vladislav Bolkhovitin
34ac184d39
- 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: http://svn.code.sf.net/p/scst/svn/trunk@1159 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-30 18:35:24 +00:00
Vladislav Bolkhovitin
273acf1fec
Logging improved
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1158 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-30 18:24:18 +00:00
Vladislav Bolkhovitin
9bac8a7ddd
Extended latency statistics
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1157 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-29 20:35:22 +00:00
Vladislav Bolkhovitin
21aeb806ff
Patch from Smadar Gonen <smadar.gn@gmail.com> implementing extended latency statistics.
...
Intermediate commit, don't use it!
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1156 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-29 20:30:17 +00:00
Mark Buechler
7a0239179d
- By default, don't issue a LIP after a group assignment change.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1155 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-28 13:38:31 +00:00
Bart Van Assche
994b61e39b
Added more error injection code.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1154 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 15:51:58 +00:00
Bart Van Assche
916dee314f
Another bug fix for aborting SCST commands: commands in state
...
SRPT_STATE_NEW are now aborted properly too. Until now aborting an
SCST command that had state SRPT_STATE_NEW triggered a sBUG_ON()
statement in scst_tgt_cmd_done().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1153 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 12:56:20 +00:00
Bart Van Assche
ffaac4ff69
Added to repository.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1152 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 11:45:59 +00:00
Bart Van Assche
1776360956
Added kernel version 2.6.31.1.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1151 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 11:39:58 +00:00
Bart Van Assche
90bfe40444
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: http://svn.code.sf.net/p/scst/svn/trunk@1150 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 08:54:42 +00:00
Bart Van Assche
a7c8b82516
Converted GNU-style to C99-style initializer list because checkpatch
...
does not recognize the former and complains about it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1149 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 08:39:18 +00:00
Bart Van Assche
4d9c7babaf
Fixed checkpatch complaints about whitespace.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1148 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 08:37:27 +00:00
Vladislav Bolkhovitin
f9182e3b00
Not completed documenting how to workaround Windows READ CAPACITY(16) bug completed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1147 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 19:39:25 +00:00
Vladislav Bolkhovitin
93e8178a4f
- Sense handling cleanup
...
- How to workaround Windows READ CAPACITY(16) bug documented
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 18:57:10 +00:00
Vladislav Bolkhovitin
b22067d540
Update for 2.6.31
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1145 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 18:31:33 +00:00
Vladislav Bolkhovitin
b5f9085222
- Fixes wrong DMA data direction
...
- Micro performance improvement
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1144 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 18:20:13 +00:00
Mark Buechler
af3245ca0a
- 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: http://svn.code.sf.net/p/scst/svn/trunk@1143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 14:11:43 +00:00
Mark Buechler
35a00370ae
- Print a friendly warning if -issuelip (or it's config option) is used
...
and the target drives lacks support for it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1142 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 14:00:08 +00:00
Mark Buechler
300922e6c5
- Regenerate temp group name should the current one already exist.
...
- Include temp group renames in the change count.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 13:56:06 +00:00
Bart Van Assche
0ff548a598
Fixed a typo in the documentation: replaced ipsrpdm by ibsrpdm.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1140 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 08:00:00 +00:00
Bart Van Assche
267f3b1f79
Only report that a command already got aborted when SCSI management
...
debugging has been enabled.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1139 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-24 18:42:22 +00:00
Bart Van Assche
3540d6b53d
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: http://svn.code.sf.net/p/scst/svn/trunk@1138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-24 18:33:07 +00:00
Vladislav Bolkhovitin
395c59cd3a
Spell fixes, including "restransmitting" noticed by Gal Rosen <galr@storwize.com>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 19:14:02 +00:00
Mark Buechler
ce8b9745c4
- Update example scst.conf file to reflect the new [OPTIONS] section.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1136 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 18:45:53 +00:00
Mark Buechler
a868ed7221
- Minor cleanup to new -issuelip functionality.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1135 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 18:05:47 +00:00
Mark Buechler
4d1e8f84c7
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: http://svn.code.sf.net/p/scst/svn/trunk@1134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 17:44:53 +00:00
Mark Buechler
c4e0b280c1
- If target-oriented access control mode is used, Default_ groups will first be created
...
as temporary groups and later renamed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1133 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 15:39:08 +00:00
Mark Buechler
40f337bba6
- Added items to the ToDo list.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1132 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 15:00:29 +00:00
Mark Buechler
4be7ffa4da
- 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: http://svn.code.sf.net/p/scst/svn/trunk@1131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 14:58:19 +00:00
Bart Van Assche
393c423380
Excluded qla2x00t from local build because compiling it is only possible after having modified the local kernel headers.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 07:03:29 +00:00
Bart Van Assche
2a01729d4d
Builds again when CONFIG_SCST_DEBUG has not been defined.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1129 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 06:50:49 +00:00