Commit Graph

86 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
c01c03a6b9 Merge of trunk r2232:
Docs updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 12:23:50 +00:00
Vladislav Bolkhovitin
afadb6306a Marge of trunk r2224:
Scstadmin now can create sessions, so update README



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2226 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 18:59:42 +00:00
Richard Sharpe
efabfe526b Merge the recent changes to the 2.0.0.x branch now that Chris Worley has tested
them and seems happy. Vlad approved having these changes merged.


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 04:50:15 +00:00
Richard Sharpe
e937b00307 Merge my recent changes into the 2.0.0.x branch ...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2123 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 03:49:07 +00:00
Vladislav Bolkhovitin
c59f067c19 Merge of r2117:
Scan host only if it has LUNs




git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2118 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:22:07 +00:00
Bart Van Assche
2db5211667 scst_local compiles again without triggering a compiler warning on kernels
2.6.27 and before.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 06:54:23 +00:00
Bart Van Assche
b94b10332d scst_local, in-tree: excluded scst_local from kernel build when HIGHMEM4G or
HIGHMEM64G is enabled.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 06:46:14 +00:00
Bart Van Assche
749929467a Fixed a recently introduced checkpatch complaint.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2079 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 06:21:42 +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
Vladislav Bolkhovitin
e72226e60b Minor cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2075 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 15:04:24 +00:00
Vladislav Bolkhovitin
9c935fdd21 More work on scst_local:
- Add sessions (SCSI hosts) creation/delete commands as well as fixes and cleanups
 - Docs updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2073 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 14:52:42 +00:00
Bart Van Assche
077bd7a761 Fixed a recently introduced checkpatch complaint about whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2068 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 09:10:14 +00:00
Vladislav Bolkhovitin
130f5f6b05 Let's make scst_local mainline ready
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2067 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-08 20:59:13 +00:00
Bart Van Assche
65c4745892 Builds again in release mode.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2064 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-07 07:08:16 +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
8536db4580 Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2059 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 14:07:09 +00:00
Richard Sharpe
3532bd33df Add support for make debug2release, release2debug debug2perf and perf2debug.
This now only needs to be switched on in the master makefile.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2055 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 19:14:29 +00:00
Vladislav Bolkhovitin
19a25e5825 Minor cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2053 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 17:26:17 +00:00
Bart Van Assche
272adb5363 Fixes for recently introduced minor checkpatch and sparse complaints.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2042 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:53:31 +00:00
Vladislav Bolkhovitin
e1ec75f089 Add enabled_attr_not_needed removed by the previous patch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2038 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 14:50:58 +00:00
Richard Sharpe
0c825d11b1 Avoid creating the second kmem_cache and allocating from it if we do not
actually need it. This should improve performance on those versions of Linux
that do not need this.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2036 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 04:10:41 +00:00
Vladislav Bolkhovitin
95f713444e Some scst_local cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2024 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 20:58:20 +00:00
Vladislav Bolkhovitin
e38cc66c2b Change SCSI_MAX_SG_SEGMENTS to more correct SG_MAX_SINGLE_ALLOC
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1956 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-18 12:59:28 +00:00
Richard Sharpe
8ad464eae7 One the advice of Vlad, reworked the change a little ... use spinlocks now and
don't hold the lock across the rescan.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1950 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-14 06:03:46 +00:00
Richard Sharpe
c06fb90d75 Process AEN requests. We queue them to a work function. This works, however,
there seems to be a problem with the Linux SCSI stack because when we delete a
LUN on the target, it does not get deleted from Linux. Still investigating.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1947 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-13 04:28:25 +00:00
Bart Van Assche
2afc2cc6cf Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1945 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-09 17:55:10 +00:00
Richard Sharpe
f9eda93575 More correctly handle residuals according to the guidelines.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1944 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-09 14:48:20 +00:00
Bart Van Assche
94cf387057 Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1938 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-06 07:05:36 +00:00
Richard Sharpe
825be22f79 Improve a debugging statement so that it shows the SAS address allocated.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1936 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-05 13:57:32 +00:00
Richard Sharpe
b0a7281646 Remove a bunch of unneeded printk lines. Also, this line:
TRACE_DBG("Created tid '%08lX'", (unsigned long)&tr_id[4]);

is wrong. All it will do is print the address of the fifth byte in the tr_id.

It should cast to an unsigned long * and deref it, at least. However, I have
anothe change that prints out the tr_id as a SAS address.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1934 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 14:22:54 +00:00
Vladislav Bolkhovitin
c70529a807 Fix minor compiler warning
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 13:30:45 +00:00
Bart Van Assche
3d65fe38ee Fixed checkpatch complaints about trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1930 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 09:54:24 +00:00
Richard Sharpe
359cdf786a Include support for PR in scst_local.c. We return a SAS-style Protocol ID. I
use an OUI that I think is not currently in use, so it seems unlikely that we
will clash with anyone else, but you never know. I might have to change it
later. 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 04:03:44 +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
05d080488e Small improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1907 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-02 17:58:03 +00:00
Richard Sharpe
5737910fb4 Put in a clearer work-around for the problem with the size of the max_cmd_size
field. The size changed at 2.6.26 from unsigned char to unsigned short.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1859 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-22 09:40:14 +00:00
Richard Sharpe
8668b22ae8 Set max_cmd_len correctly depending on the size of the field. In earlier
versions of Linux it was an unsigned char, and a value of 260 means 4 after a compiler warning. Added a comment to describe what is going on as well. Since 
this is done very infequently it should not cause performance problems and 
means that it will not silently fail to work if people try to use it on kernels
earlier than 2.6.26. If I figure out what kernel version the change was made
in we could use an ifdef.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1852 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-21 16:08:34 +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
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
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
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
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
4a2fcb870b - Logging cleanups. Particularly, TRACE_MGMT_MINOR level was removed
- Docs updates
 - Other minor fixes and cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1452 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-12 13:29:01 +00:00
Vladislav Bolkhovitin
23accb2e12 When converting the SCST source code into a series of upstream patches, SCST
is built via the kbuild infastructure. In kernel version 2.6.24 (commit
f77bf01425b11947eeb3b5b54685212c302741b8) the kbuild variable ccflags-y has
been introduced and the use of EXTRA_CFLAGS in kbuild makefiles has been
deprecated. The patch below converts SCST's in-tree makefiles such that these
use ccflags-y instead of EXTRA_CFLAGS when generating kernel patches for
kernel 2.6.24 or later.

Additionally, this patch removes the "default n" from the file
scst/kernel/in-tree/Kconfig.scst since this statement is superfluous.

The patch below has been tested by verifying the output of the following
command:
for ((v=23;v<=32;v++)); do rm -rf re* && scripts/run-regression-tests 2.6.$v; done

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-11 19:16:38 +00:00
Vladislav Bolkhovitin
3c93276d8f Cosmetics.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1301 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-29 19:27:14 +00:00
Vladislav Bolkhovitin
29feda5143 Let's don't check if data should be copied between dev handler's and target driver's buffers on the fast path and make it a duty of a target driver who might need it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1244 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 15:40:42 +00:00
Vladislav Bolkhovitin
173e97d2bd Set max_cmd_len correcty.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1242 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 15:17:38 +00:00