Commit Graph

1983 Commits

Author SHA1 Message Date
Bart Van Assche
20098b3634 Added scsi_tgt kernel module source code.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2156 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-22 17:00:46 +00:00
Bart Van Assche
14638a27a5 Cleanup.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2155 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-22 16:56:56 +00:00
Bart Van Assche
ac76a0b85a Fixed three copy/paste errors.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2154 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-22 16:56:29 +00:00
Mark Buechler
88634a4383 - Add example for sysfs version.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2152 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-22 16:27:37 +00:00
Bart Van Assche
091b1da24c Updated kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2151 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-21 10:03:40 +00:00
Bart Van Assche
d28b944661 Reverted an unintended behavior change.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2150 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-20 18:38:58 +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
Bart Van Assche
5cf473bff1 Corrected patch descriptions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2148 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-19 09:04:25 +00:00
Bart Van Assche
350aa065cb More diff minimizing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2147 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-18 13:31:42 +00:00
Bart Van Assche
372e02c368 Generate ibmvstgt patch automatically.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-18 13:12:18 +00:00
Bart Van Assche
cc2a8a97c0 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2145 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-18 12:59:26 +00:00
Bart Van Assche
a43faee6a0 Diff minimizing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2144 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-18 12:58:45 +00:00
Bart Van Assche
c55e7712ef Removed ibmvscsi.h again.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-18 12:47:18 +00:00
Bart Van Assche
3abff13107 Moved original source files to a subdirectory.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2142 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-18 12:41:15 +00:00
Bart Van Assche
26e64631a0 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-18 12:40:26 +00:00
Bart Van Assche
9f20d45776 Version number update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2140 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-17 06:02:51 +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
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