Commit Graph

3897 Commits

Author SHA1 Message Date
Bart Van Assche
54cbef15e8 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5187 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-08 19:38:41 +00:00
Bart Van Assche
a0bc415649 ib_srpt, ib_srpt.h: Fix kernel-doc warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5186 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-07 14:26:25 +00:00
Bart Van Assche
3fe1a7f5d4 ib_srpt, README: Document how to detect excessive packet loss
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5185 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-07 14:13:49 +00:00
Bart Van Assche
922a8f8178 ibmvstgt: Add #include <linux/module.h> in libsrp.c
Include <linux/module.h> in order to fix the following errors:

ibmvstgt/src/libsrp.c:477:20: error: expected declaration specifiers or ?...? before string constant
 MODULE_DESCRIPTION("SCSI RDMA Protocol lib functions");
                    ^
ibmvstgt/src/libsrp.c:478:15: error: expected declaration specifiers or ?...? before string constant
 MODULE_AUTHOR("FUJITA Tomonori");
               ^
ibmvstgt/src/libsrp.c:479:16: error: expected declaration specifiers or ?...? before string constant
 MODULE_LICENSE("GPL");
                ^

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5184 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-04 14:06:02 +00:00
Bart Van Assche
828fcc6fbd ibmvstgt: Remove the obsolete __devinitdata attribute
See also upstream commit "Drivers: misc: remove __dev* attributes"
(0fe763c570ad2701c830b9e4e53c65ad89c11c32; kernel 3.8).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-04 14:03:56 +00:00
Bart Van Assche
53c344a10e iscsi-scst: Kernel 3.13 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-02 17:20:00 +00:00
Bart Van Assche
f371a10df0 scst_lib: Kernel 3.13 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5181 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-02 17:19:42 +00:00
Bart Van Assche
1814d2777c nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5180 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-24 13:51:34 +00:00
Bart Van Assche
1f2df6eb44 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-24 11:01:08 +00:00
Bart Van Assche
d482d1752f scst_mem: Suppress recently introduced sparse warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5178 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-24 10:43:06 +00:00
Bart Van Assche
4bdc945cdd scripts/run-regression-tests: Add 'make rpm' test
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5177 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-24 10:42:22 +00:00
Bart Van Assche
65bfdc746d scst_mem: Build fix for kernel versions before 2.6.35 (see also r5163)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5174 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-22 10:15:08 +00:00
Bart Van Assche
cd16bfdf42 scripts/rebuild-rhel-kernel-rpm: Embed '.scst' in the generated kernel RPM names
An example for RHEL 6.5:

kernel-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm
kernel-debuginfo-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm
kernel-debuginfo-common-x86_64-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm
kernel-devel-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm
kernel-firmware-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm
kernel-headers-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm
perf-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm
perf-debuginfo-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm
python-perf-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm
python-perf-debuginfo-2.6.32-431.1.2.0.1.el6.scst.x86_64.rpm



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5173 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-22 10:05:02 +00:00
Bart Van Assche
320d2c42d2 scripts/rebuild-rhel-kernel-rpm: Add RHEL 6.4 and RHEL 6.5 support
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5172 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-22 10:03:41 +00:00
Bart Van Assche
1e897454b2 iscsi-scst/kernel/patches/rhel/put_page_callback-2.6.32-431.patch: put_page_callback patch for RHEL 6.5
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-22 10:02:54 +00:00
Bart Van Assche
d94f6b40e5 scripts/rebuild-rhel-kernel-rpm, log(): Interpret control characters correctly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5170 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-21 20:06:52 +00:00
Vladislav Bolkhovitin
3d8f34c50a Fix hang under load + avoid unneeded logging
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5169 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-21 05:08:26 +00:00
Vladislav Bolkhovitin
6cfeda64ca Cleanup and clarification of allocation masks handling
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5166 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-20 03:41:44 +00:00
Bart Van Assche
4b48ce668b nightly build: Add kernel 3.12
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5165 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-19 08:09:15 +00:00
Bart Van Assche
f5a8248cb7 nightly build: Add kernel 3.12 build infrastructure
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5164 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-19 08:07:15 +00:00
Vladislav Bolkhovitin
60d49c8451 Update for kernel 3.12
May be not completed, because this kernel has too many internal issues
reported after enabling "Kernel hacking" config options



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5163 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-19 05:15:48 +00:00
Bart Van Assche
7a82927e0a scripts/rebuild-rhel-kernel-rpm: Add RHEL 6.4 support
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5162 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 16:23:34 +00:00
Bart Van Assche
7c4a91a517 scripts/rebuild-rhel-kernel-rpm: Fix a comment
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5161 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 16:22:24 +00:00
Bart Van Assche
5d9cbdabf6 scripts/rebuild-rhel-kernel-rpm: Add support for Oracle Linux 6
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5160 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 14:57:21 +00:00
Vladislav Bolkhovitin
81349d12a7 scst: Kernel >= 3.10 procfs build fix
The following procfs-related changes have been included in kernel 3.10:
- The PDE() macro has been removed from <linux/proc_fs.h>.
- The create_proc_entry() function has been removed.
- The proc_info field has been removed from struct scsi_host_template.

Unbreak the procfs build for kernel versions >= 3.10



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5148 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 05:58:09 +00:00
Vladislav Bolkhovitin
d2976ad7ce scst: set_cpus_allowed_ptr() workaround for RHEL 5.10
Apparently RHEL 5.9 has an implementation of set_cpus_allowed_ptr()
but RHEL 5.10 not. Work around this by providing an implementation.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5147 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 05:56:14 +00:00
Vladislav Bolkhovitin
b628b36da3 scst: RHEL 5 build fixes
Avoid that compilation fails on RHEL 5.9. In the RHEL 5.9 kernel headers
neither __printf() nor sg_is_last() has been defined. Additionally, the
variable 'fd' in vdisk_unmap_range() is only defined when building against
kernel version > 2.6.27.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 05:55:31 +00:00
Bart Van Assche
bea15720dc scst_vdisk, procfs mode: Rework r5111
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5145 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-17 16:17:42 +00:00
Bart Van Assche
06a3995b01 scstadmin/scstadmin.procfs/Makefile: Fix installation path
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5144 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-17 11:40:50 +00:00
Bart Van Assche
506a3fd76e scripts/run-regression-tests: Detect compilation failures properly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-17 08:15:33 +00:00
Vladislav Bolkhovitin
ea4a132a4b scst: Remove the unused variable scst_main_lock
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5142 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-14 05:51:37 +00:00
Vladislav Bolkhovitin
98a22c124e Fix currently disabled setting of LBPRZ in INQUIRY
Reported by Steve Looby <slooby@permabit.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-14 05:50:25 +00:00
Bart Van Assche
82dcd52240 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5140 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-05 13:30:43 +00:00
Vladislav Bolkhovitin
70ce10d351 Follow up for the previous commit
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5139 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-05 04:15:42 +00:00
Vladislav Bolkhovitin
26b9e5eaad Fix write resuduals handling on data receive error
By default data receive error it should be assumed that no data
received, not that all data received as it is currently



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-05 04:05:49 +00:00
Bart Van Assche
34d764426a scst: Make it possible to build an RPM
Make it possible to build an SCST RPM via the command "make rpm".
The contents of the two RPMs built by this command is as follows:

$ rpm -qlp rpmbuilddir/RPMS/x86_64/scst-3.11.8+-3.0.0.*-1.x86_64.rpm
/lib/modules/3.11.8+/extra
/lib/modules/3.11.8+/extra/dev_handlers
/lib/modules/3.11.8+/extra/dev_handlers/scst_cdrom.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_changer.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_disk.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_modisk.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_processor.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_raid.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_tape.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_user.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_vdisk.ko
/lib/modules/3.11.8+/extra/fcst.ko
/lib/modules/3.11.8+/extra/ib_srpt.ko
/lib/modules/3.11.8+/extra/iscsi-scst.ko
/lib/modules/3.11.8+/extra/qla2x00tgt.ko
/lib/modules/3.11.8+/extra/qla2xxx_scst.ko
/lib/modules/3.11.8+/extra/scst.ko
/lib/modules/3.11.8+/extra/scst_local.ko
/usr/sbin/iscsi-scst-adm
/usr/sbin/iscsi-scstd
/usr/share/man/man5/iscsi-scstd.conf.5.gz
/usr/share/man/man8/iscsi-scst-adm.8.gz
/usr/share/man/man8/iscsi-scstd.8.gz
/var/lib/scst
$ rpm -qlp rpmbuilddir/RPMS/x86_64/scst-3.11.8+-devel-3.0.0.*-1.x86_64.rpm
/usr/include/scst
/usr/include/scst/Module.symvers
/usr/include/scst/scst.h
/usr/include/scst/scst_const.h
/usr/include/scst/scst_debug.h
/usr/include/scst/scst_sgv.h
/usr/include/scst/scst_user.h


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-03 12:04:35 +00:00
Bart Van Assche
03ee20ee1e scst_lib: Source code comment spelling fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5136 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-28 14:19:22 +00:00
Vladislav Bolkhovitin
27c21ff385 qla2x00t: Update and refine howto
Some users think these instructions are not valid for Linux 3.x kernels
since there are examples in this document referring to a 2.6.x kernel.
Hence update the examples.

Explain how to discover initiator port WWNs since this is nontrivial for
novice users.

Update the SourceForge SVN SCST URL since it changed a few months ago.

Move the qla2xxx module unload step to after the system reboot. Performing
that step after the reboot even though that module has already been
blacklisted is necessary because at that time initrd has not yet been
rebuilt and hence a reboot can cause that module to be reloaded from initrd.

The steps for building and installing SCST itself have been reduced from
four commands into a single command.

The sample scst.conf file is now generated - local FC port WWNs are
discovered automatically.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5135 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-22 05:43:47 +00:00
Bart Van Assche
e719f08c5f nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-21 18:08:20 +00:00
Vladislav Bolkhovitin
15756cbfb5 Clarify locking comment for scst_alloc_set_UA()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5133 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-20 04:12:42 +00:00
Bart Van Assche
1463890112 scstadmin: Use the "install_vendor" method when building an RPM
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5132 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 17:20:45 +00:00
Bart Van Assche
e3534beba8 scstadmin: Make the regression tests independent of the installation path of iscsi-scstd
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 17:14:23 +00:00
Bart Van Assche
59ca77e6fe scstadmin: Prevent manual installation if the scstadmin RPM has already been installed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 17:11:59 +00:00
Bart Van Assche
2c1469a2d7 scstadmin: Make it possible to rebuild the RPM
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5129 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 17:07:27 +00:00
Bart Van Assche
cde37a8e3c /etc/init.d/scst: Make this script independent of the installation directory (/usr/local versus /usr)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5128 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 17:01:36 +00:00
Bart Van Assche
136cbaebb9 scstadmin: Eliminate $SCST->{'err_string'}
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5127 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 17:00:50 +00:00
Bart Van Assche
3f1e616262 scstadmin: Add a regression test for saving and restoring scst.conf
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5126 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 16:59:50 +00:00
Bart Van Assche
3107c8fb82 scstadmin: Fix a bashishm
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 16:58:32 +00:00
Bart Van Assche
7f13d7ac6d scst spelling fix: Rename "atimic" into "atomic"
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5124 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 09:49:35 +00:00
Bart Van Assche
f239f4d071 ib_srpt: procfs build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5123 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-19 08:14:08 +00:00