Commit Graph

419 Commits

Author SHA1 Message Date
Bart Van Assche
e0903d4ce0 scstadmin: Fix parsing of the soft links under the 'exported' directory
Reported-by: Dzmitry Kotsikau <dkotsikau@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7326 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-04 18:02:47 +00:00
Bart Van Assche
7baba46a23 scstadmin: Improve test 08
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7325 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-04 18:01:16 +00:00
Bart Van Assche
e02fb4b9ad scstadmin tests: Remove temporary files after tests 05 and 06 have finished
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7324 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-04 18:00:48 +00:00
Bart Van Assche
3ef72409bd scstadmin: Add test 08 for -close_dev
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7323 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-04 04:17:23 +00:00
Bart Van Assche
efff1b524d scstadmin: Skip the copy manager when computing exported LUNs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-04 04:16:04 +00:00
Bart Van Assche
a8f0afeb50 scstadmin: Add the -dumpAttrs command line option
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7321 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-04 04:15:11 +00:00
Bart Van Assche
6aaefd6882 scstadmin, test 07: Make a filename more specific
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7320 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-04 04:14:08 +00:00
Bart Van Assche
31ff7ecab8 scstadmin: Revert r7310 because it was reported not to fix the issue it should have fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7319 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-04 02:40:13 +00:00
Bart Van Assche
41491391f8 scstadmin: Fix -close_dev
Avoid that closing a device fails and an empty export list is reported
if a device is currently not exported. This patch is based on a patch
provided by Dzmitry Kotsikau <dkotsikau@gmail.com>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7310 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-31 05:39:38 +00:00
Bart Van Assche
3abfda9ec0 scstadmin: Fix a few bugs in the regression test code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7166 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-04 02:36:37 +00:00
Bart Van Assche
2a074789ac scstadmin: Revert r7014
The immediateExit() call introduced in r7014 prevents to assign multiple
values to attributes that support multiple values, e.g. 'allowed_portal'.
Hence revert r7014.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7092 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-02-05 06:52:06 +00:00
Bart Van Assche
449eb5944b scstadmin: Avoid that specifying an attribute multiple times results in an incomprehensible error message
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7014 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-21 21:54:02 +00:00
Bart Van Assche
7c4b50692c scst regression tests: Unload the scst kernel module explicitly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7013 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-21 21:21:29 +00:00
Bart Van Assche
cf02e20771 scstadmin: Sort group and device group names alphabetically
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6992 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-07 00:22:47 +00:00
Bart Van Assche
67b215a3ff scstadmin: Bump version number
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6988 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-04 05:24:35 +00:00
Bart Van Assche
d41a3a3cc9 /etc/init.d/scst: Make this script work on recent versions of Ubuntu Linux
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6919 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-26 17:26:17 +00:00
Vladislav Bolkhovitin
55bb0206cd scst: when checking the status of the service, also check if all daemons are running
Signed-off-by: Erez Zilber <erezzi.list@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6906 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-30 04:10:38 +00:00
Bart Van Assche
d15d5773a7 scst, iscsi-scst, scstadmin: Spell successful and unsuccessful correctly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6891 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-05-07 04:30:46 +00:00
Vladislav Bolkhovitin
f97c54e690 scstadmin: prevent saving statistical dif_checks_failed attribute
From Marc Smith <marc.smith@mcc.edu>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6867 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-04-20 04:52:58 +00:00
Bart Van Assche
dec1b4a12d scstadmin: Leave out "r" from RPM revision number
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6857 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-04-09 03:11:52 +00:00
Bart Van Assche
39c3b79497 scst regression test 7: Fix $redirect_file initialization
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-18 11:39:19 +00:00
Bart Van Assche
41434a9905 scstadmin: Suppress warnings about the use of an undefined value in numeric ne (!=)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6768 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-18 11:05:20 +00:00
Bart Van Assche
b3dcab787a scstadmin: Bump SCST.pm version number from 0.9.10 to 1.0.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6738 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 22:44:23 +00:00
Bart Van Assche
ed118eb69e scstadmin: Fix regression test 7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6737 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 22:39:55 +00:00
Bart Van Assche
d25d044b3f scstadmin: Fix SCST/SCST.pm path
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6736 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 20:03:09 +00:00
Bart Van Assche
957b51a997 scstadmin, FC: By default, do not issue LIP. Add option -lip.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6735 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 18:35:34 +00:00
Bart Van Assche
749c8a3e75 scstadmin: Fix -attributes behavior for multiple attributes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6734 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 18:34:39 +00:00
Bart Van Assche
094a6be70d scstadmin: Add a seventh regression test
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6733 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 18:33:17 +00:00
Bart Van Assche
9484c62c41 scstadmin.sysfs/Makefile: Add and comment out TEST_VERBOSE=1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6732 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 18:31:49 +00:00
Bart Van Assche
e4a852e599 scstadmin regression tests: Rename two files
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6731 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 17:39:55 +00:00
Bart Van Assche
ad812fedb6 scstadmin: Ensure that -no_lip takes effect for all SCST configuration commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6717 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-02 22:59:33 +00:00
Bart Van Assche
3353e47e28 scstadmin: Make regression test 6 pass
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6713 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-23 23:05:24 +00:00
Bart Van Assche
949aa31053 scstadmin: Improve copy manager support further
Also restore pass-through LUNs


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6712 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-23 23:04:57 +00:00
Bart Van Assche
0f3bcea86d scstadmin: Improve copy manager support
Add support for saving and restoring copy manager attributes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-21 00:19:04 +00:00
Bart Van Assche
2f455b29d1 /etc/init.d/scst: Suppress rmmod error messages
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6708 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-20 23:23:48 +00:00
Bart Van Assche
10a3374bc0 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/trunk@6691 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-14 01:07:27 +00:00
Bart Van Assche
7588498c4a scstadmin: Leave out the copy manager from the driver list
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6690 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-13 21:07:50 +00:00
Bart Van Assche
cfe0d34201 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


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-13 19:07:10 +00:00
Bart Van Assche
c800406f8c scstadmin, test 03: Skip the copy manager
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6672 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-11 23:57:31 +00:00
Bart Van Assche
fea566969f scstadmin: Do not save copy_manager LUN definitions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6671 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-11 23:56:56 +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