Vladislav Bolkhovitin
a85225d5a3
Merged revisions 6703-6718,6720-6721 via svnmerge from
...
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk
........
r6703 | bvassche | 2015-11-19 08:53:18 -0800 (Thu, 19 Nov 2015) | 5 lines
scst_sysfs: Introduce scst_parse_add_repl_param()
This makes the __scst_process_luns_mgmt_store() source code slightly
easier to read.
........
r6704 | bvassche | 2015-11-19 09:30:24 -0800 (Thu, 19 Nov 2015) | 1 line
scripts/run-regression-tests: Also test no-DLM build
........
r6705 | bvassche | 2015-11-19 09:31:02 -0800 (Thu, 19 Nov 2015) | 1 line
scst: Fix procfs build
........
r6706 | bvassche | 2015-11-19 09:48:18 -0800 (Thu, 19 Nov 2015) | 1 line
scst: More procfs build fixes. See also r6694.
........
r6707 | bvassche | 2015-11-20 13:47:57 -0800 (Fri, 20 Nov 2015) | 5 lines
scst_local: Linux kernel v4.4 build fix
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
[ bvanassche: Merged the two #if-statements into a single #if-statement ]
........
r6708 | bvassche | 2015-11-20 15:23:48 -0800 (Fri, 20 Nov 2015) | 2 lines
/etc/init.d/scst: Suppress rmmod error messages
........
r6709 | bvassche | 2015-11-20 16:19:04 -0800 (Fri, 20 Nov 2015) | 5 lines
scstadmin: Improve copy manager support
Add support for saving and restoring copy manager attributes.
........
r6710 | bvassche | 2015-11-22 11:49:18 -0800 (Sun, 22 Nov 2015) | 4 lines
qla2x00t: Fix a few typos
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
........
r6711 | bvassche | 2015-11-22 12:03:29 -0800 (Sun, 22 Nov 2015) | 7 lines
mpt: Include header file mptbase.h without path
Allow include path modification with LSI_INC_DIR.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
........
r6712 | bvassche | 2015-11-23 15:04:57 -0800 (Mon, 23 Nov 2015) | 4 lines
scstadmin: Improve copy manager support further
Also restore pass-through LUNs
........
r6713 | bvassche | 2015-11-23 15:05:24 -0800 (Mon, 23 Nov 2015) | 2 lines
scstadmin: Make regression test 6 pass
........
r6714 | bvassche | 2015-11-25 09:28:02 -0800 (Wed, 25 Nov 2015) | 6 lines
usr/fileio: Build fix for Ubuntu 15.10
Ubuntu 15.10 includes Linux kernel 4.2 but does not define
SERVICE_ACTION_IN_16 in the <scsi/scsi.h> glibc header. Hence
provide a definition in scst_const.h.
........
r6715 | bvassche | 2015-11-27 20:39:57 -0800 (Fri, 27 Nov 2015) | 1 line
scst-const.h: Follow-up for r6714
........
r6716 | bvassche | 2015-12-02 08:57:45 -0800 (Wed, 02 Dec 2015) | 1 line
scst: Rename the PR-sync document to avoid filenames with spaces in the SCST tree
........
r6717 | bvassche | 2015-12-02 14:59:33 -0800 (Wed, 02 Dec 2015) | 1 line
scstadmin: Ensure that -no_lip takes effect for all SCST configuration commands
........
r6718 | bvassche | 2015-12-03 16:31:40 -0800 (Thu, 03 Dec 2015) | 1 line
nightly build: Update kernel versions
........
r6720 | vlnb | 2015-12-07 19:44:51 -0800 (Mon, 07 Dec 2015) | 3 lines
docs: fix (extra)clean brocken by r6716
........
r6721 | vlnb | 2015-12-07 19:51:01 -0800 (Mon, 07 Dec 2015) | 3 lines
Cleanup
........
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6722 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-08 03:58:10 +00:00
Vladislav Bolkhovitin
7a043f2618
Merged revisions 6682-6691 via svnmerge from
...
svn://svn.code.sf.net/p/scst/svn/trunk
........
r6682 | bvassche | 2015-11-12 09:43:26 -0800 (Thu, 12 Nov 2015) | 1 line
scst_copy_mgr: Fix indentation
........
r6683 | bvassche | 2015-11-12 10:26:26 -0800 (Thu, 12 Nov 2015) | 8 lines
qla2x00t: Suppress a Coverity complaint about a potential buffer overflow
Coverity reported the following:
Copy into fixed size buffer (STRING_OVERFLOW)
fixed_size_dest: You might overrun the 17 byte fixed-size string
ha->model_number by copying def without checking the length.
........
r6684 | bvassche | 2015-11-12 10:30:15 -0800 (Thu, 12 Nov 2015) | 1 line
qla2x00t: Do not compare an array pointer with NULL
........
r6685 | bvassche | 2015-11-12 10:30:42 -0800 (Thu, 12 Nov 2015) | 1 line
qla2x00t: Use strlcpy() instead of strcpy()
........
r6686 | bvassche | 2015-11-12 14:17:59 -0800 (Thu, 12 Nov 2015) | 4 lines
scst_lib: Avoid using 64-bit divisions
Reported-by: Sebastian Herbszt <herbszt@gmx.de >
........
r6687 | vlnb | 2015-11-12 15:33:45 -0800 (Thu, 12 Nov 2015) | 3 lines
Update the root README regarding QLogic target driver
........
r6688 | bvassche | 2015-11-13 08:26:09 -0800 (Fri, 13 Nov 2015) | 8 lines
scst: Fix kernel 2.6.36 build
Avoid that compilation fails with the following error message:
include/linux/slub_def.h:246: error: conflicting types for ‘kmalloc’
include/scst/backport.h:458: error: implicit declaration of function ‘kmalloc’
........
r6689 | bvassche | 2015-11-13 11:07:10 -0800 (Fri, 13 Nov 2015) | 7 lines
scstadmin: Do not try to clear copy manager assignments
This patch avoids that the following error message is displayed on the
console while "/etc/init.d/scst start" is executed:
scst: scst_cm_mgmt:3556:***ERROR***: Device copy_manager_tgt not found
........
r6690 | bvassche | 2015-11-13 13:07:50 -0800 (Fri, 13 Nov 2015) | 1 line
scstadmin: Leave out the copy manager from the driver list
........
r6691 | bvassche | 2015-11-13 17:07:27 -0800 (Fri, 13 Nov 2015) | 4 lines
scstadmin: Pass $PREFIX to Makefile.PL
Signed-off-by: Alexey Mochkin <alukardd@alukardd.org >
........
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6692 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-14 02:32:38 +00:00
Vladislav Bolkhovitin
408ae374ba
Merged revisions 6596-6674,6679 via svnmerge from
...
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6681 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 03:57:17 +00:00
Bart Van Assche
64984b964c
scstadmin.spec: procfs build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6562 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:09:11 +00:00
Bart Van Assche
8ae47bccef
scstadmin: Micro-optimize driverExists()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6550 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-20 18:17:08 +00:00
Bart Van Assche
3d9ca3b2a6
SCST.pm: Do not cache the driver list
...
Signed-off-by: Eugene Apollonsky <apollonskiy.E@raidix.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6549 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-20 18:15:51 +00:00
Bart Van Assche
0e3844a5be
scstadmin: Fix ALUA help text
...
Signed-off-by: Hiroyuki Sato <hiroysato@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6548 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-20 15:08:27 +00:00
Bart Van Assche
6c6a6e6ba3
scst.spec: Make version numbers monotonically increasing for the git tree
...
Additionally, make the fourth component of the version number configurable.
An example: make RPM REVISION=r733
Reported-by: Consus <consus@gmx.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6491 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-31 15:03:20 +00:00
Bart Van Assche
dc070e83d8
RPM spec files: Add dependency clauses
...
scst.spec: Add "Requires: depmod find rm" and "Provides: scst"
scstadmin.spec: Add "Requires: rm"
Proposed-by: Consus <consus@gmx.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6487 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-27 17:56:52 +00:00
Bart Van Assche
c84af1f153
regression tests: Unload iSER target driver before the iSCSI target driver
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 21:24:57 +00:00
Bart Van Assche
fc11600c06
regression tests: Unload iSER target driver before the iSCSI target driver
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6469 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 20:42:21 +00:00
Bart Van Assche
06ef46415c
/etc/init.d/scst: Suppress an error message if iscsi-scstd is not installed
...
Avoid that the following error message is printed when stopping
or starting SCST if iscsi-scstd has not been installed:
# /sbin/service scst restart
which: no iscsi-scstd in
(/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin)
Restarting SCST
Signed-off-by: Hiroyuki Sato <hiroysato@gmail.com >
[bvanassche: Eliminated ISCSI_DAEMON variable]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6436 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-29 17:20:43 +00:00
Bart Van Assche
14c82f892d
/etc/init.d/scst: Fix stopping SCST with iSER loaded
...
Commit r6420 broke scst unloading, since isert_scst must be
unloaded before iscsi_scst.
Additionally, fix another possible cause of failing to unload
isert_scst. With iSER (RDMA CM to be exact) it may take up to
about 50 seconds to receive disconnected event if the remote end
is for some reason unreachable, e.g. becauase of a cable problem
or power loss/forced reboot on initiator side. This is due to MAD
send timeout.
Signed-off-by: Yan Burman <yanb@mellanox.com >
[bvanassche: modified this patch such that it uses unload_kmod()]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6432 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-28 15:28:59 +00:00
Bart Van Assche
2715178d01
/etc/init.d/scst: Introduce function unload_kmod()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6429 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-27 16:10:36 +00:00
Bart Van Assche
8f49cd43bc
/etc/init.d/scst: Avoid that starting SCST fails with CONFIG_INFINIBAND=n
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6420 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-14 18:26:38 +00:00
Bart Van Assche
2056892f23
scstadmin/Makefile: Take $(DESTDIR) into account
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6326 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-16 18:21:11 +00:00
Bart Van Assche
1890eee7b9
scstadmin: Rename the SCST-SCST Perl module into SCST_SCST
...
From http://perldoc.perl.org/ExtUtils/MakeMaker.html : "NAME must
be a valid Perl package name". Rename the Perl module to avoid
that MakeMaker reports the following:
Warning: NAME must be a package name
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6325 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-16 18:16:18 +00:00
Bart Van Assche
6aaeca1cd9
Merge iser branch r6234 into trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-10 15:35:26 +00:00
Bart Van Assche
7ccc3033ec
scstadmin, installation: Make the activation command output easier to read
...
Reported-by: Chris Weiss <cweiss@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6213 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-03 20:21:34 +00:00
Bart Van Assche
9c037ae577
scstadmin: Fix saving groups without LUNs
...
Reported-by: Aayush Kasurde <aayush.kasurde@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6150 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-25 19:43:30 +00:00
Bart Van Assche
7d3686b481
scstadmin: Suppress a Perl warning
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-24 14:46:10 +00:00
Bart Van Assche
1d8c5653a1
scstadmin: Correct rem_group and rem_init help text
...
Signed-off-by: Aayush Kasurde <aayush.kasurde@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-20 10:37:14 +00:00
Bart Van Assche
505a4dbc80
Spelling fix: existant -> existent
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5954 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-22 13:09:20 +00:00
Bart Van Assche
dd249ab556
Spelling fix: occured -> occurred
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5950 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-22 12:35:00 +00:00
Bart Van Assche
0717d99a62
/etc/init.d/scst: Exit with status code 0 upon 'start' if already running
...
Reported-by: Dimitar Tanev <dimitar@linuxdevgroup.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-04 12:19:56 +00:00
Bart Van Assche
7fd9a3af66
scstadmin test 06-cont-on-err.t: Filter out scstadmin version number
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5794 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-10 11:44:14 +00:00
Bart Van Assche
31bd7ef3c4
scstadmin: Sync saved configuration files
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5793 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-10 11:42:54 +00:00
Bart Van Assche
369a8fb306
scstadmin: Avoid that the Perl interpreter prints a warning message about using an undefined variable on Fedora systems
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5731 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-26 09:56:54 +00:00
Vladislav Bolkhovitin
523fe73096
Forgotten versions updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-13 05:03:17 +00:00
Bart Van Assche
08c5b47ce0
regression tests: Sort hash keys before comparing
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5582 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-11 15:27:48 +00:00
Bart Van Assche
730f2ee268
regression tests: Sync with a recent sysfs change
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5581 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-11 15:27:06 +00:00
Vladislav Bolkhovitin
6dab45204c
scst: Leave out FSF mail address
...
This avoids that the following checkpatch complaint is triggered:
Do not include the paragraph about writing to the Free Software Foundation's
mailing address from the sample GPL notice. The FSF has changed addresses in
the past, and may do so again. Linux already includes a copy of the GPL.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5572 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-06 03:24:03 +00:00
Bart Van Assche
7922cc2dfb
scstadmin, regression tests: Follow-up for r5409
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5475 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 18:45:23 +00:00
Bart Van Assche
c664dcb277
scstadmin: List keys alphabetically in the -list_sessions output
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5410 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-06 20:26:08 +00:00
Bart Van Assche
ef9d1b9001
scstadmin: Restore LUNs in "scstadmin -list_sessions" output
...
Signed-off-by: Dave Butler <tears.the@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5409 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-06 20:13:53 +00:00
Bart Van Assche
e4ab729b48
make rpm: Do not remove rpmbuilddir
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5307 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-24 07:30:50 +00:00
Bart Van Assche
a8a71bf610
Spelling fix: initator -> initiator
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5306 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-24 06:56:44 +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
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
22bd9156c7
scstadmin: -cont_on_err bug fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5112 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-14 10:10:37 +00:00
Bart Van Assche
ff73c5cb2e
scstadmin: Make -list_ttgt_attr and -set_ttgt_attr work for local target ports
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-13 21:16:37 +00:00
Bart Van Assche
4f31d1cc0e
scstadmin: Sort target group names alphabetically
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-13 21:08:53 +00:00
Bart Van Assche
40908c5d37
scstadmin: Remove duplicate code
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-11-13 21:07:19 +00:00