Commit Graph

112 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
51a96ec92d Merge of the trunk's r3504:
- Let's always do extraclean on Makefiles modifications, because they can affect data layout in header files, which could not be detected by all target drivers/dev handlers makes
 - Cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3505 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 16:59:28 +00:00
Vladislav Bolkhovitin
0bfa54bfb8 Merge the trunk's rrs 3438:3445, 3447:3450, 3452:3456 and 3458:3466
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 23:02:07 +00:00
Vladislav Bolkhovitin
4539005d7c Patch from Alexey Obitotskiy <alexeyo1@open-e.com> making get_initiator_port_transport_id() more flexible
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-29 14:30:01 +00:00
Bart Van Assche
d00afd73f4 Added remaining files necessary for 2.6.38 nightly build support.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3304 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-24 11:55:23 +00:00
Vladislav Bolkhovitin
f518cd150c Let's remove *.orig and *.rej files on extraclean
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3277 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-10 20:07:23 +00:00
Vladislav Bolkhovitin
d38930733e Cleanup of unused out_sess.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3243 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-31 23:17:23 +00:00
Vladislav Bolkhovitin
f15f2cdd5f - Making scst_local be safe with BLOCKIO and pass-through.
- Docs update



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3205 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-11 13:39:27 +00:00
Vladislav Bolkhovitin
411fb4f623 - Update for 2.6.37
- Docs updated
 - Returning of DIRECT contexts by scst_estimate_context() disabled (see comment in the patch why)



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-10 18:34:29 +00:00
Vladislav Bolkhovitin
f3238333dd Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3200 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 20:02:04 +00:00
Bart Van Assche
2dce167153 scst_local: Ported to kernel 2.6.37.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3194 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:58:18 +00:00
Bart Van Assche
94b01ca7a3 Added 2.6.37-related files (svn merge -c3129 https://scst.svn.sourceforge.net/svnroot/scst/branches/sysfs-tree-changes).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 14:12:44 +00:00
Vladislav Bolkhovitin
14930d39a9 Making creation of default target and session by default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-18 15:53:59 +00:00
Vladislav Bolkhovitin
e1066553c8 The return value of scst_tgt_get_tgt_priv() in sysfs methods must be checked because at least in
theory it is possible that scst_tgt_get_tgt_priv() is invoked before
scst_register_target() returns. The patch below implements such a check and
also removes some superfluous casts.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2691 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 17:27:02 +00:00
Vladislav Bolkhovitin
d66dcd71eb Fix minor Makefile issues
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2655 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 12:35:11 +00:00
Bart Van Assche
a5417c1641 Compilation: Disabled -Wextra on RHEL5 since it triggers too many uninteresting warnings on that platform.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2615 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 10:20:16 +00:00
Bart Van Assche
3667335dca Copied and renamed the 2.6.35 in-tree files (does not build yet!).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2429 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 12:20:34 +00:00
Bart Van Assche
6ace2a37bc Avoid that sparse complains on the scst_local source code.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2288 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-27 15:27:33 +00:00
Vladislav Bolkhovitin
27ba7c24d8 Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2232 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 12:22:02 +00:00
Vladislav Bolkhovitin
2d9473d073 Scstadmin now can create sessions, so update README
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2224 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 18:57:13 +00:00
Richard Sharpe
56e6f52c54 remove an unneeded include file
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 04:47:43 +00:00
Richard Sharpe
2fc8c5ea79 Fix the AEN code, particularly the work function stuff to work with older
versions of the kernel. Also, use correct specifiers in some places, ie %zd 
where a negative number could be printed.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2149 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-20 14:30:00 +00:00
Richard Sharpe
25520184a4 A small coding style fix, plus a specifier fix in an ifdef block. The coding
style fix conforms to the kernel coding standard and uses if (!xxx) rather
than if (NULL == xxx).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-17 04:00:15 +00:00
Richard Sharpe
3d41efd784 Add an #ifndef CONFIG_SCST_PROC around the checking for add_default_tgt so that
we use the old PROC behavior.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 02:43:33 +00:00
Vladislav Bolkhovitin
11fade176a Scan host only if it has LUNs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:15:02 +00:00
Vladislav Bolkhovitin
f6a2a6b4db CDB splitting added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2115 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:02:35 +00:00
Vladislav Bolkhovitin
98b09a7a26 SG chaining implemented
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 20:47:44 +00:00
Richard Sharpe
d4d9b4c5ed I think this fixes the problem Vlad had after he reworked scst_local.c but he
seems to have removed the setting of hpnt->max_id, so it seems the default is
7. Set it to 0 because we only want one ID on the device, and we don't do
any checking ...



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 20:28:47 +00:00
Richard Sharpe
118900953e Fix the module parm description so that the name matches the correct name.
Also, this approach changes the default behavior for people who are using
CONFIG_SCST_PROC because the default was that a single host/tgt was added,
but now they have to change their /etc/modules.d/scst.conf or whatever to 
add add_default_tgt=1.

I am not sure that is a good thing.

With the last few commits and this one, I have tested on 2.6.34.1 and 2.6.28
and things seem to work. I am now looking at the problem Vlad reported with
CONFIG_SCST_PROC where local devices show up under SCSI bus or device from 0
to 7.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 18:11:42 +00:00
Richard Sharpe
bad63dc691 Fix a bug where is we load without specifying add_default_tgt=1 we cause an
oops when we try to unload scst_local. This is because we were unregistering 
the driver if we did not add a default target, but we try to do that again
when we try to unload the driver.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 05:48:27 +00:00
Richard Sharpe
2be149adb3 Add more damn ifdefs to allow us to use root_device_register to create the
root device rather than using a statically allocated structure in the driver.

Tested with 2.6.24 ... now testing with an earlier version.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 23:22:00 +00:00
Bart Van Assche
45f9175449 Fix for r2082: declaring bool kernel module parameters as bool is allowed since
kernel 2.6.31, not since kernel 2.6.28. See also commit fddd520122953550ec2c8b60e7ca0d0f0d115d97.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 11:30:29 +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