20 Commits

Author SHA1 Message Date
Bart Van Assche
4cd532a987 Multiple files: Remove trailing whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7504 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 03:55:02 +00:00
Vladislav Bolkhovitin
7bde8810f5 Currently there are three different init scripts inside the SCST project:
scst, iscsi-scst and qla2x00t. This makes it unnecessary hard for users to
run several target drivers simultaneously. Additionally, several variants of
these init scripts exist for different distributions. This patch unifies all
these init scripts into a single init script. Additionally, some new features
have been added:
- Kernel module parameters can now be specified per kernel module in
  /etc/default/scst. An example:
 ib_srpt_parameters="thread=1 srp_max_req_size=4200"
- When using the sysfs interface, compute the kernel module list from scst.conf.
  Or, editing the SCST_MODULES variable is no longer necessary.
- When using the procfs interface, the SCST handler kernel module list is
  computed from /etc/scst.conf. The list of target driver kernel modules must
  now be configured in /etc/default/scst.

Other changes:
- scstadmin output is shown if scstadmin fails.
- Running make -C scstadmin install does no longer cause the scst script to
  be started at the next reboot - it is better to leave this as an explicit step.
- Made the error message generated if the lsb-core package has not yet been
  installed more clear.
- Use proper init script path on Slackware.
- make uninstall: run remove_initd under chroot if $(DESTDIR) is not empty.
- Fixed a bug in "make -C scstadmin uninstall": the path specified for removing
  /etc/init.d/scst was wrong.
- The command /etc/init.d/scst restart will only try to start SCST if stopping
  succeeded.
- Replaced "mkdir -m 755 -p $(DESTDIR)$(INITDIR)" by
  "install -d $(DESTDIR)$(INITDIR)" because of uniformity.

These changes have been tested on Ubuntu 11.04, Fedora 15, CentOS 5.6,
Scientific Linux 6.0, openSUSE 11.4, SLES11 SP1 and Slackware 13.37.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3564 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-10 02:38:04 +00:00
Vladislav Bolkhovitin
dfa320af1b Try to load crc32c-intel to hardware offload digests.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3283 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-15 14:05:39 +00:00
Bart Van Assche
fac989f319 Added ADD_MODULES variable to initd.debian.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3055 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-14 12:04:36 +00:00
Bart Van Assche
3583bbf2cb Added ADD_MODULES variable to initd.redhat.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3054 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-14 12:03:06 +00:00
Vladislav Bolkhovitin
02f27457c0 Update sample scripts to run scstadmin
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2250 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 19:15:56 +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
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
376befe8c3 New conf file sample added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2040 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:43:17 +00:00
Vladislav Bolkhovitin
716107a964 Docs updates before making the sys interface default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2039 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:38:19 +00:00
Vladislav Bolkhovitin
0c0a734968 A set of startup scripts for Gentoo customized by Scott R. Bowe <scottb@sentania.net>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1521 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 14:14:23 +00:00
Vladislav Bolkhovitin
9a94dbe2e6 Return value of the script depend on the return value of the
last executed function. 
 
In some functions (for example: start) the return value of the  
last executable is being returned but not being checked anywhere. 
If this last operaion fails, the return value shouldn't be 0. 
 
Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@487 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-13 18:09:23 +00:00
Vladislav Bolkhovitin
9847aa17ba - A bunch of minor, mostly stability related, fixes.
- Docs update


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@248 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-24 10:56:35 +00:00
Vladislav Bolkhovitin
2de18c7c7a - Now iSCSI target service load considered successful if at least one listen socket was successfully open and setup
- Minor race on BLOCKIO requests submittion was fixed
 - Other minor fixes and cleanups


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@220 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-12 11:21:54 +00:00
Vladislav Bolkhovitin
053d7a8753 - Patch from Tomasz Chmielewski <mangoo@wpkg.org>: fixes incorrect shutdown on Debian systems.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@213 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-26 15:58:50 +00:00
Vladislav Bolkhovitin
0c22a4866a Minor changes based on comments from Tomasz Chmielewski <mangoo@wpkg.org>, Benjamin Yates <benjamin@rqdq.com> and Andy <AndrewL733@aol.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@174 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-29 09:52:07 +00:00
Vladislav Bolkhovitin
eafe9cfb46 Sample scstadmin .conf added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-27 10:01:48 +00:00
Vladislav Bolkhovitin
918c113858 - Updated to the latest IET (r137)
- ToDo note added


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-23 15:29:44 +00:00
Vladislav Bolkhovitin
044a6987d9 "iSCSI Enterprise" ranamed to "iSCSI-SCST"
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@165 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-16 09:19:34 +00:00
Vladislav Bolkhovitin
e6a57baa14 The initial commit of iSCSI-SCST
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@162 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-15 09:28:54 +00:00