Bart Van Assche
6aa2ebca55
Send back the proper error code when an SRP task management command fails.
...
Replaced a numeric constant by a symbolic one.
Renamed a function.
Updated several comments.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2097 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 17:51:40 +00:00
Bart Van Assche
2c10d7e4f5
Cleaned up Subversion ignore list: removed obsolete entries and added TAGS.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2096 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 11:32:26 +00:00
Bart Van Assche
8ed7d3d0a6
Removed the source files libsrpnew.h/.c again.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 11:31:31 +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
79216f3bdd
Updated Subversion ignore list.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2093 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 11:22:06 +00:00
Bart Van Assche
a40fdacb5f
Pre-2.6.31 kernel compiler warning fix.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2092 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 08:21:35 +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
Vladislav Bolkhovitin
929eebcfec
TAGS file renamed to not interfere with ctags
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2089 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 14:00:21 +00:00
Vladislav Bolkhovitin
85aa336006
Fixes sparse failure on constructs like "char str[max(...)];", because it does not recognize expressions like
...
max(constant1, constant2) as a constant. Also, sizeof(string) + 1 reserves one byte too much: sizeof(string) does count the terminating zero byte.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 12:54:17 +00:00
Bart Van Assche
4340c8f66f
Made kernel builds more silent.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2087 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 08:34:47 +00:00
Bart Van Assche
c7c33ed5d7
Builds now agains the openSUSE 11.3 kernel headers too. OpenSUSE 11.3 has a 2.6.34 kernel with blkdev_issue_flush() backported from 2.6.35.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 08:08:34 +00:00
Bart Van Assche
055686251d
Disable CONFIG_DEBUG_STRICT_USER_COPY_CHECKS before starting a kernel build.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2085 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 08:07:19 +00:00
Bart Van Assche
0f4411d273
Added support for operator != (not equal to). Undefine CONFIG_SUSE_KERNEL.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2084 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 07:35:58 +00:00
Bart Van Assche
58fe6226ce
Only include the procfs headers when necessary.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2083 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 07:05:20 +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
635996c45b
Added Kconfig entry for scst_user. Excluded scst_user from the kernel build
...
when HIGHMEM4G or HIGHMEM64G is enabled.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 06:45:22 +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
Vladislav Bolkhovitin
8f1d1f1c1c
Possible deadlocks with sysfs ref counting in sysfs works fixed (it is waiting for the last put, but
...
the last ref counter holder is waiting for scst_mutex).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 20:20:36 +00:00
Bart Van Assche
89b35b8b9d
Even more upstream include path conversions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 15:38:31 +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
eafe13657f
Hide disabled targets from SendTargets view
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2074 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 14:53:42 +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
ec2712759f
Un-break nightly build.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2072 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 13:57:30 +00:00
Bart Van Assche
5edde5ec25
Eliminated the include/scst include path from the upstream ib_srpt Makefile.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2071 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 09:46:18 +00:00
Bart Van Assche
a86577a276
Only include the procfs header files when necessary.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2070 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 09:23:36 +00:00
Bart Van Assche
d84ec4d8ce
Removed a superfluous include path.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2069 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 09:18:00 +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
9cade02e7a
Reverted an accidentally committed change.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2066 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-07 07:33:44 +00:00
Bart Van Assche
91521a2dd2
Fixed sparse errors introduced in r2060.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2065 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-07 07:30:28 +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
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
Bart Van Assche
e7cfb78543
Fixed a compiler warning that was introduced in r2057.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2062 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-07 07:06:04 +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
Vladislav Bolkhovitin
f96b2e9428
Forgotten IET MC/S added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2058 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 13:51:19 +00:00
Vladislav Bolkhovitin
036899aa9f
GPL cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2057 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 13:48:15 +00:00
Richard Sharpe
485f7a128b
Switch on support for make debug2release etc in scst_local
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2056 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 19:15:50 +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
3c902f9a48
Fixes race between cancel_delayed_work_sync() and conn_nop_in_delayed_work_fn() restarting the work despite of the cancel. Reported by Phil White <phil@philwhite.org>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2054 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 17:35:45 +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
Vladislav Bolkhovitin
9963c18578
Fixes possible crashes on threads management. Issue with volatile bool noticed by Bart Van Assche <bvanassche@acm.org>, great thanks!
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2052 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 17:16:08 +00:00
Vladislav Bolkhovitin
0679e4e7a1
Get rid of the checkpatch warning about including <asm/uaccess.h>
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2051 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 13:29:36 +00:00
Vladislav Bolkhovitin
4fb1e2527c
Fix confusion between CONFIG_DEBUG_SG and CONFIG_SCST_DEBUG_TM noticed by Bart Van Assche <bvanassche@acm.org>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2050 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 13:27:04 +00:00
Vladislav Bolkhovitin
c0ab5d3b89
Make r2048 more nice.
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2049 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 13:22:56 +00:00
Vladislav Bolkhovitin
38f2e60dfd
Fix for an endianness warning reported by sparse
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2048 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 11:55:43 +00:00
Bart Van Assche
0ff36ae2e2
Unbreak the nightly build after the procfs to sysfs switch.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2047 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 08:17:55 +00:00