Commit Graph

280 Commits

Author SHA1 Message Date
Bart Van Assche
b72ffcf4e3 scstadmin, scst.conf man page: Add example for fcst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4181 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-03 06:58:03 +00:00
Bart Van Assche
81fff819d6 scstadmin: Make /etc/init.d/scst status work on RHEL 6.2. Apparently RHEL 6.2 doesn't define the function rc_status in /lib/lsb/init-functions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4163 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-03-18 12:05:45 +00:00
Bart Van Assche
87dd12ac73 scstadmin: Suggest the user to use systemctl (systemd) instead of the LSB installation script if available
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4153 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-03-04 14:17:53 +00:00
Bart Van Assche
3da8048c71 scstadmin: Only enable /etc/init.d/scst in runlevels 3 and 5 since networking is not available in runlevels 2 or 4
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4152 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-03-04 14:16:51 +00:00
Bart Van Assche
02b431ec24 scstadmin: Revert r4023 since bug https://bugzilla.novell.com/show_bug.cgi?id=738281 has been fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4151 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-03-04 14:13:52 +00:00
Bart Van Assche
448a7bdd29 scstadmin: Replace scstadmin/scstadmin by a soft link if it is a regular file. This is a workaround for a bug in the "Download tarball" functionality of the SourceForge website
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4129 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-02-15 10:02:06 +00:00
Bart Van Assche
cb5cc4592c scstadmin: Document the ISCSID_OPTIONS variable in the /etc/default/scst man page. That variable was added in r4066.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4073 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-16 10:23:06 +00:00
Bart Van Assche
372373cf5f scstadmin: Allow iscsi-scstd command-line options to be specified in /etc/default/scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4066 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-12 17:36:49 +00:00
Bart Van Assche
a7d2282fd0 Make "/etc/init.d/scst status" exit with code 3 instead of 0 if SCST has not been started, as required by the LSB. Fixes a bug introduced in r3805.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4047 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-02 12:08:33 +00:00
Vladislav Bolkhovitin
6d8ca195f7 openSUSE 12.1 automatically transforms commands like
"/etc/init.d/scst start" into a systemd start command. Since that doesn't
work for the SCST init script, disable systemd wrapping.

See also bug #738281 "Upgrading from openSUSE 11.4 to openSUSE 12.1 breaks third-party
LSB-compliant System V style init scripts" in the Novell bugzilla database
(https://bugzilla.novell.com/show_bug.cgi?id=738281).

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4023 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-21 03:02:13 +00:00
Bart Van Assche
c8fc2dd821 /etc/init.d/scst: clarify comments
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3996 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 13:03:51 +00:00
Mark Buechler
c866c6f4b1 - Small directory check in _issueLip(). Not sure why this is needed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3956 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-06 19:41:33 +00:00
Mark Buechler
1bbf50a530 - Warn only in issueLip() when -issue_lip is an argument.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3951 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-05 19:39:59 +00:00
Mark Buechler
9076e2a107 - Fix -issue_lip as reported by Iain Paton.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3934 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-18 20:32:01 +00:00
Bart Van Assche
3749844c5f scst initialization: Remove kernel module parameters from /etc/default/scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-17 17:52:29 +00:00
Mark Buechler
58bd090c3e Fixed minor config file bug pointed out by Bart Van Assche.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3918 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-11 17:50:08 +00:00
Bart Van Assche
b5865c7969 /etc/init.d: When installing SCST 3.0, disable and remove the now obsolete iscsi-scst and qla2x00t init scripts.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3843 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-04 11:57:39 +00:00
Bart Van Assche
706407c334 /etc/init.d/scst: Let "scst start" proceed even if the config file is missing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3827 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-22 19:09:59 +00:00
Bart Van Assche
24fc29b9d6 Follow-up for r3816: make sure that /etc/init.d/scst restart works again
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3826 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-21 08:21:31 +00:00
Bart Van Assche
34714117d1 /etc/init.d/scst, Gentoo: do not require that /etc/scst.conf exists when starting SCST. Makes the init script behavior on Gentoo consistent with LSB-compliant distributions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 08:27:18 +00:00
Bart Van Assche
0042639266 /etc/init.d/scst: Port to Gentoo
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3805 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 16:13:33 +00:00
Bart Van Assche
b500c6bad7 scstadmin works fine with SCST 2.x too
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3793 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 09:05:05 +00:00
Bart Van Assche
4f828ba8a3 Update scstadmin and scst.conf man pages with information about ALUA. Update the scst.conf example too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3782 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-27 12:38:51 +00:00
Mark Buechler
f58e5ff746 - Help menu cleanup.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3774 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 18:39:14 +00:00
Bart Van Assche
5bb53889f6 scstadmin: Port ALUA support to new sysfs interface
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3772 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 18:31:58 +00:00
Mark Buechler
dc7c3c569d - Hopefully the last fix for initiator to target.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3771 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 18:28:37 +00:00
Mark Buechler
d590380e90 - Terminology fix pointed out my Bart Van Assche - rename initiator to target wrt target groups.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 18:22:12 +00:00
Mark Buechler
df0b08fd87 - Update man page for minor argument changes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3768 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 17:18:20 +00:00
Mark Buechler
6dfea77a42 - Sync version with scst.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3767 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 17:03:42 +00:00
Mark Buechler
c69d248484 - Forgot initiators within target groups. ALUA should be complete now.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3766 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 17:03:15 +00:00
Mark Buechler
31a3b9b5b3 - Finish writeConfiguration().
- Added clearConfiguration() support for ALUA.
- Added applyConfiguration() support for ALUA.

At this point, ALUA support should be complete. 

Todo: Rewrite and simplify a whole lot of redundant code.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3765 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 16:47:49 +00:00
Mark Buechler
16cf933695 - Update addDeviceGroup() to latest svn.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3764 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 13:51:10 +00:00
Mark Buechler
b21be77a50 - Ignore the new DEVICE_GROUP clause when applying SCST attributes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3756 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 20:11:21 +00:00
Mark Buechler
8480912712 - Remove some left over debugging.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3755 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 19:21:55 +00:00
Mark Buechler
efb56801e9 - Read current ALUA configuration.
- Write current ALUA configuration.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3754 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 19:19:14 +00:00
Mark Buechler
00fcdca302 - Finish out the new ALUA options to scstadmin.
- Standardize the new options.
- Bug fixes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3753 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 18:25:48 +00:00
Mark Buechler
03c41350bd - Add in device group attributes for if/when they are supported.
- Add a couple more ALUA arguments to scstadmin.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3752 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 15:24:50 +00:00
Bart Van Assche
dea280a0f9 scstadmin: Make (un)installation work again
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3742 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-23 12:25:55 +00:00
Bart Van Assche
84d6b9b6b4 Revert r3737
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3741 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-23 12:08:01 +00:00
Bart Van Assche
a3344b629a scstadmin: Install scstadmin in the proper directory
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3737 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-23 08:27:34 +00:00
Mark Buechler
d1b42a46a6 - Add initiator and attribute methods to module.
- Rename overly long method names.
- Add a couple more ALUA options to scstadmin.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3735 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-22 18:19:33 +00:00
Bart Van Assche
0648776e65 scstadmin: Make the default installation prefix /usr/local configurable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-21 19:00:24 +00:00
Mark Buechler
b52f158f91 - Fix Makefile.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3717 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-21 18:53:54 +00:00
Mark Buechler
24a1a3553d - Rename module directory to new version.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-21 18:53:32 +00:00
Mark Buechler
1e95f146b1 - Hopefully finish out module additions (largely untested)
- Add basic functions to scstadmin for ALUA
- Increment version to be more in line with next SCST release



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3715 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-21 18:50:58 +00:00
Mark Buechler
b069bb43d3 - Initial module support for ALUA
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-21 17:31:09 +00:00
Bart Van Assche
688b1d50a6 scstadmin: For the new sysfs interface, make scstadmin independent of the presence of the text [key] on the second line of the value of a sysfs attribute
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3707 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-21 13:46:55 +00:00
Bart Van Assche
1b79bc57e9 scstadmin: Refactoring - use make_path() wherever possible
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-21 08:27:01 +00:00
Bart Van Assche
3e13713e87 scstadmin: Modify make_path() such that there is only a single leading slash at the start of absolute paths and such that it does not convert relative paths into absolute paths.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3703 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-21 08:26:04 +00:00
Bart Van Assche
588ed2f4d0 scstadmin: Refactoring - rename mkpath() into make_path(). While the current code works fine, the function mkpath() has the same name but different behavior than the Perl library function mkpath(), which is confusing for humans.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3702 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-21 08:24:55 +00:00