Vladislav Bolkhovitin
fc2c602429
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2197 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 12:18:39 +00:00
Vladislav Bolkhovitin
f284378434
Stay away from buffers overflows with too long firmware and PCI infos
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-16 14:01:19 +00:00
Vladislav Bolkhovitin
62564bb386
More version updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2121 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 22:04:14 +00:00
Vladislav Bolkhovitin
1f5ff3e5ed
Change version on 2.1.0-pre1
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2112 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 20:45:46 +00:00
Vladislav Bolkhovitin
d27bbc0d15
Final version and docs update before pushing it into the stable branch
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 14:07:53 +00:00
Bart Van Assche
5b33692678
More upstream include path conversions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2076 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 15:27:54 +00:00
Bart Van Assche
e302c2f306
Fixed a checkpatch complaint about trailing whitespace. This issue was introduced in r2060.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2063 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-07 07:07:21 +00:00
Vladislav Bolkhovitin
c66ae1850e
- get_transport_version() function changed to get target on entry
...
- transport versions propageted to user space handlers
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2061 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 21:45:48 +00:00
Vladislav Bolkhovitin
961d59ff40
- Version descriptors added
...
- Multi-transport support added to scst_local
- Sysfs attributes "version" and "trace_level" added to scst_local
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2060 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 21:21:49 +00:00
Vladislav Bolkhovitin
d36e8ba654
Make sysfs default
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2041 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:47:51 +00:00
Vladislav Bolkhovitin
716107a964
Docs updates before making the sys interface default
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2039 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:38:19 +00:00
Vladislav Bolkhovitin
83945bde9c
Fixes crash with certain topology setups. Reported and tested by Timm Essigke <Timm.Essigke@uni-bayreuth.de>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 10:30:17 +00:00
Vladislav Bolkhovitin
7f042fc37b
Missed chuncks for 2.6.35 update
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2019 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-28 16:07:11 +00:00
Vladislav Bolkhovitin
f6f3e8f03e
Fix a minor typo noticed by Timm Essigke <Timm.Essigke@uni-bayreuth.de>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2000 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-25 19:19:20 +00:00
Vladislav Bolkhovitin
1607d12c9c
Sysfs cleanups and fixes, part 1
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1962 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-20 15:38:21 +00:00
Bart Van Assche
7b839ceaf7
Added to repository.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:33:45 +00:00
Vladislav Bolkhovitin
891c7d5b03
Fix BUG while enabling target mode remote port disappear:
...
In case if ELS LOGO command received on the target port,
the firmware can notify the driver about it in 3 different ways,
which handled differently by the driver (it doesn't clear when it use each way):
1. Immediate notify of login-affecting ELS command received (status code 0x46).
The target driver terminate all commands received for the specified initiator
(N_Port handle).
2. Asynchroneus event of port update.
The target driver only print message, and in remark it's written that
/* .mark_all_devices_lost() is handled by the initiator driver */
3. Immediate notify of port logged out (status code 0x29).
The target driver terminate all commands received for the specified initiator
(N_Port handle), and also mark all devices as lost.
In 1 and 2 everthing is OK. In 3 the target driver mark all devices as lost,
but never retrigger rescanning.
There are 2 solutions:
1. Not marking the devices as lost base on written in the async event case, and
also base on the spec which says to only terminate all commands.
2. Mark all devices as lost and retrigger rescanning.
1 was implemented; delete all calls to mark_all_devices_lost() in qla2x00t.c, and
unexport symbol of this function in qla_os.c
Signed-off-by: Gal Rosen <galr@storwize.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-20 17:51:19 +00:00
Vladislav Bolkhovitin
6527947abb
Fix "‘wrap’ may be used uninitialized" warning
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-13 12:24:13 +00:00
Vladislav Bolkhovitin
07b012ca56
[PATCH] Session reference count logic error in Qlogic target
...
When double session is found in q2t_create_sess the session object is updated,
but after exiting from the function, if the session is not NULL the reference
counter is decrement, become zero and then the session is deleted.
As done while making a local session we need here to increment the reference
count by calling to q2t_sess_get, because at exiting we call to q2t_sess_put.
Signed-off-by: Gal Rosen <galr@storwize.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1798 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-29 10:33:41 +00:00
Vladislav Bolkhovitin
eb16bf9163
Implement qlini_mode qla2xxx module parameter with ini_mode_force_reverse sysfs attribute instead of CONFIG_SCSI_QLA2XXX_TARGET_DISABLE_INI_MODE compile-time option for better flexibility.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1781 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-24 18:03:27 +00:00
Vladislav Bolkhovitin
78edc5afb9
Various cleanups and fixes after some errors injection tests. Particularly:
...
- ISCSI preliminary completed commands handling fixes
- Write residuals cleanups and fixes
- Interface to handle residuals and received from initiators data changed
- BIDI cleanups and fixes.
- All BIDI IN fields and functions renamed to OUT to be in line with the in-kernel convention
+
Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1780 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-23 13:57:35 +00:00
Bart Van Assche
ca97893240
Fixed checkpatch complaints about whitespace and one sparse warning.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-05 16:44:27 +00:00
Vladislav Bolkhovitin
bf79920fa1
Version changed to 2.0-rc2
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1744 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-04 19:46:42 +00:00
Vladislav Bolkhovitin
8c05a7f350
Residuals and write residuals counting fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1742 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-04 19:43:02 +00:00
Vladislav Bolkhovitin
4bf0fb2871
Make BLOCKIO honor SYNCHRONIZE_CACHE commands
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1738 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-04 11:53:29 +00:00
Vladislav Bolkhovitin
417ba22149
Support for Persistent Reservations for qla2x00t added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1729 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-31 18:05:09 +00:00
Bart Van Assche
e4a0b97871
Fixed recently introduced whitespace-complaints reported by checkpatch.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 18:47:11 +00:00
Bart Van Assche
d3ed16cc1e
Added to repository.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 18:20:26 +00:00
Vladislav Bolkhovitin
b53e4cb4c1
Merge of the pr branch with additional fixes for problems found during extra testing
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 17:46:46 +00:00
Vladislav Bolkhovitin
0c0cfb4408
Pass-through dev handlers docs updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-24 10:00:22 +00:00
Bart Van Assche
c99bd720c8
Removed trailing whitespace because checkpatch complained about it.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1671 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-30 10:49:28 +00:00
Vladislav Bolkhovitin
a6270011ec
- Fixing case when during SRRs ping-pong between initiator and target HW pending timeout gets triggered and the corresponding command deleted => oops on the next ping-pong turn
...
- Minor cleanups and fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1662 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-28 16:54:22 +00:00
Vladislav Bolkhovitin
9449c43bc8
Docs updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-08 18:28:39 +00:00
Vladislav Bolkhovitin
4d5aaf047b
Copyrights updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-06 08:57:48 +00:00
Vladislav Bolkhovitin
4e53e166b4
- Some reference leaks fixed
...
- Updated to compile on pre-2.6.25 kernels
- Small docs updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1570 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-30 11:28:20 +00:00
Vladislav Bolkhovitin
a93d5b593e
Small cleanups and improvements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1565 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-26 19:46:41 +00:00
Vladislav Bolkhovitin
08e7c3fba6
Great threads handling and performance improvements:
...
- io_context not needed anymore
- Now threads pool can be per session
- Each device now can have own type of threads pool with own threads count
+ docs updates and some cleanups and minor fixes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1563 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-25 19:43:41 +00:00
Vladislav Bolkhovitin
cdebb360f6
Small web fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1562 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-23 14:08:17 +00:00
Vladislav Bolkhovitin
70615e2dc3
dos2unix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1561 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-19 11:47:42 +00:00
Vladislav Bolkhovitin
1d4d2e85b5
Fix minor mistake
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1560 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-19 11:44:39 +00:00
Vladislav Bolkhovitin
cbaab260f1
Add new scst_cmd_get_queue_type()/scst_cmd_set_queue_type() accessors and use them in target drivers instead of direct access to SCST's cmd->queue_type.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1553 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-17 19:11:18 +00:00
Vladislav Bolkhovitin
dc3f4265c9
Key mark for explicit confirmations added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1546 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-17 12:56:35 +00:00
Vladislav Bolkhovitin
ab5da422b8
- SysfsRules file added
...
- Other docs updated
- ini_group renamed to ini_groups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1542 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-13 11:59:24 +00:00
Vladislav Bolkhovitin
17db798a36
Make enable_target() interface more clear
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1539 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-10 11:56:15 +00:00
Vladislav Bolkhovitin
256b25cc0f
- Dev handler sysfs interface changed to match new unified rules
...
- Docs updated
- Other minor fixes, improvements and cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1538 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-09 19:36:48 +00:00
Bart Van Assche
5dc06c26de
scripts/run-regression-tests works now for the 2.6.33 kernel too.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1525 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 17:32:38 +00:00
Vladislav Bolkhovitin
9c02ed26c7
Update for 2.6.33
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1524 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 15:56:31 +00:00
Vladislav Bolkhovitin
4d96089e50
Sysfs interface for targets made uniform. ISCSI-SCST made confirming the uniformity requirements. See README for details.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1511 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-17 19:07:54 +00:00
Vladislav Bolkhovitin
b611a22ed0
Patch from Christian Motschke <motschke@itso-berlin.de>:
...
I had some problems compiling scst due to some bashisms in the Makefiles. As
you will know, Debian uses /bin/dash as default shell and /bin/sh is only a
link to /bin/dash. I can either change the default shell, (or in my opinion
the better solution) use SHELL=/bin/bash in the Makefile.
I have made a patch for the Makefiles in question (I hope, that are all
Makefiles).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-10 19:32:31 +00:00
Vladislav Bolkhovitin
21476c4b9c
Docs about QLA FW version updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-12 20:10:56 +00:00