Commit Graph

1966 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
e696ce50d6 Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2136 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-16 18:55:52 +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
Bart Van Assche
2f52c70221 Modified nightly build config.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2133 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-16 11:45:55 +00:00
Bart Van Assche
7ef57f0f9e Bug fix: made sure that the patch generated by command-line option -u actually compiles.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2132 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-16 10:56:37 +00:00
Vladislav Bolkhovitin
53d2c612b7 Small improvement: scst_get_sg_page_first()/scst_get_sg_page_next() added to avoid page_address()/virt_to_page() pair for cases, where only pages are needed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-15 19:18:47 +00:00
Bart Van Assche
f725c61c7b Source code comment spelling fix.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-15 18:04:26 +00:00
Vladislav Bolkhovitin
669c380211 The patch below makes it again possible to build SCST against the 2.6.23
or before kernel headers and also suppresses several compiler warnings
about possibly uninitialized variables.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2129 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-15 18:00:17 +00:00
Bart Van Assche
35dc0e55f2 Removed two superfluous semicolons.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2128 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-15 07:33:41 +00:00
Bart Van Assche
8479d63551 Added locking-per-lun patch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2127 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 18:21:31 +00:00
Bart Van Assche
cb36024b63 Builds again against kernel 2.6.23 and before.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2126 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 10:55:10 +00:00
Bart Van Assche
25cb08ed2f Fixed a checkpatch complaint about 'return is not a function'.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 08:42:25 +00:00
Bart Van Assche
19ac548c1a Fixed a checkpatch complaint about whitespace and a compiler warning about a format string mismatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2124 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 07:40:12 +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
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
9a501b9f1c Forgotten enabling iSCSI target driver noticed by Alex Crow <alex@nanogherkin.com> added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2119 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:36:22 +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
69540954d5 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2116 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:10:13 +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
d5e230f260 Building TAGS added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:01:41 +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
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
Bart Van Assche
5ee4257971 Updated kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 18:57:39 +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
Bart Van Assche
f5736f2b6a ib_srpt performance optimization.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2109 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 18:57:04 +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
Bart Van Assche
8c0c079be4 Fixed a compiler warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 17:44:11 +00:00
Bart Van Assche
72fb7b3644 Shortened a kernel module parameter description.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 10:03:06 +00:00
Bart Van Assche
4908c258ce Further conversion towards SCST. Fixed sparse errors and warnings. Restored
struct srp_target_port in libsrp to the upstream definition / moved several
members to struct vio_port.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 10:02:36 +00:00
Bart Van Assche
82b810f2ad Remove /* #define CONFIG_SCST_PROC */ from the input.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 08:07:28 +00:00
Bart Van Assche
2aa9e1d69a Bug fix: substitute CONFIG_SCST_PROC properly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 07:49:54 +00:00
Bart Van Assche
9878d2533f Reverted r2099.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2102 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 07:31:33 +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
1c90d919d5 Removed unused code.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2099 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 18:20:59 +00:00
Bart Van Assche
2f289c967b More conversions towards SCST. There are still several to-do items left though.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2098 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 18:20:24 +00:00
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