Commit Graph

71 Commits

Author SHA1 Message Date
Mark Buechler
2fe68c6554 - Finish up handling LUNs outside of groups. This should now
work with iscsi (and any driver/target which supports not
  using ini_groups).
- Add support for creating/deleting targets.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1732 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-01 18:25:45 +00:00
Mark Buechler
8ed236d49f - Split out apply config into parts to allow for luns (or other sections) to
exist outside of ini_groups - necessary for virtual targets.
- Added a few more methods (incomplete) for handing virtual targets.
- Started work on the check config code.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1700 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-18 19:59:09 +00:00
Mark Buechler
81c6cb0397 - Added ability to read/convert an old configuration file. NOTE, this
may not work 100%. Defined groups will only be configured for
  targets contained within [TARGET enable] sections.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-12 18:31:22 +00:00
Mark Buechler
9539887b16 - Fix writeConfiguration() to not create empty groups and tidy it up a bit.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1686 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-11 18:58:03 +00:00
Mark Buechler
c770d037bd - Rename *AvailableParameters() to *CreateParameters() in module.
- Both write and apply target parameters now.
- Perform config deletions now with -force option.

Scstadmin.sysfs should now suffice to perform basic configuration
changes as well as apply from a config file.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1682 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-06 16:46:32 +00:00
Mark Buechler
c21f57bc97 - Remove some debugging.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1680 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-04 17:43:36 +00:00
Mark Buechler
f411449747 - More updates to scstadmin.sysfs. This version has basic config
writing, reading and applying capability. No config file
  syntax checking is being done so be warned.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1679 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-04 17:41:35 +00:00
Mark Buechler
c27387a0f7 - More scstadmin.sysfs related updates. I think the help menu
is complete at this point.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1673 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-30 18:03:53 +00:00
Mark Buechler
14d5140421 - Updates to SCST::SCST 0.9 to support sysfs interface.
- First version of scstadmin.sysfs. This is INCOMPLETE,                  
  don't use it yet.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1670 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-29 20:20:58 +00:00
Mark Buechler
80527e905e - Added new scst perl module 0.9.00. Note, this
version does not yet work with scstadmin. Please
  use older scst-0.8.xx. This new module is a complete
  rewite to support sysfs.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1599 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-08 19:30:22 +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
Mark Buechler
14fe1bed1e - Die if /proc/scsi_tgt/version doesn't exist.
- Replace croak() with die() in the module.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1411 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-12-23 19:55:07 +00:00
Mark Buechler
8db1080d78 - Added -noprompt option. Use with care!
- Added support for T10 device ID. Applied modified patch by witoldk1@open-e.com.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1395 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-12-15 20:01:01 +00:00
Mark Buechler
60d27d6e24 - Added new vdisk_blockio and vdisk_nullio introduced by the sysfs changes.
Change by witoldk1@open-e.com.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1376 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-12-04 19:08:32 +00:00
Mark Buechler
7a0239179d - By default, don't issue a LIP after a group assignment change.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1155 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-28 13:38:31 +00:00
Mark Buechler
af3245ca0a - Only retry creating a temp group name the max possible names
to prevent an infinite loop. Since we're using rand() here,
  it's possible we could exit the loop with no unique name.     
  However, this is pretty unlikely considering thousands
  if temp group names would have to already exist.
- Fail out if we can't come up with a temp group name and just
  use the original specified.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 14:11:43 +00:00
Mark Buechler
35a00370ae - Print a friendly warning if -issuelip (or it's config option) is used
and the target drives lacks support for it.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1142 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 14:00:08 +00:00
Mark Buechler
300922e6c5 - Regenerate temp group name should the current one already exist.
- Include temp group renames in the change count.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 13:56:06 +00:00
Mark Buechler
ce8b9745c4 - Update example scst.conf file to reflect the new [OPTIONS] section.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1136 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 18:45:53 +00:00
Mark Buechler
a868ed7221 - Minor cleanup to new -issuelip functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1135 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 18:05:47 +00:00
Mark Buechler
4d1e8f84c7 Changes for 1.0.10
- Added new [OPTIONS] section to config file.             
- Added new ISSUE_LIP option for fc targets to issue a LIP after group
  assignment changes.
- Added new KEEP_CONFIG option to keep all options when overwriting a   
  configuration file with -writeconfig.
- General cleanup.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 17:44:53 +00:00
Mark Buechler
c4e0b280c1 - If target-oriented access control mode is used, Default_ groups will first be created
as temporary groups and later renamed.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1133 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 15:39:08 +00:00
Mark Buechler
40f337bba6 - Added items to the ToDo list.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1132 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 15:00:29 +00:00
Mark Buechler
4be7ffa4da - Replace a device on a given LUN when applying the configuration instead of removing
the old device and assigning the new one.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 14:58:19 +00:00
Mark Buechler
c76190e675 - Remove unused references to handler IOs that don't exist and cleanup the write
configuration function to only write vdisk and vcdrom devices. All other devices
  are automatically claimed by their handler module. I'm not sure how this will work
  with devices we wish to change handlers for.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 21:04:39 +00:00
Mark Buechler
5bf03c83ea - Add the ability to specify options (ie: READ_ONLY) in assignments in scst.conf.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1109 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 20:32:35 +00:00
Mark Buechler
a32b30de56 - Move a user from one group to another when applying the configuration instead
of deleting from one and adding to another the same user.
- Minor fix to readConfig() which wasn't fully allowing for empty groups.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 18:38:23 +00:00
Mark Buechler
788c769a65 - Added the ability to specify options for -assigndev and -replacedev,
mainly READ_ONLY for now.
- Updated module to accept more than one option for assignDeviceToGroup() and
  replaceDeviceInGroup().
- Incremented module version number and renamed module directory to reflect it.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 16:33:24 +00:00
Mark Buechler
c4061f22e2 - Added -moveuser, -renamegroup and -ReplaceDev options and necessary -to argument.
- Fixed minor bug in new renameGroup() method in SCST::SCST.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1102 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 19:28:13 +00:00
Mark Buechler
efe48552bc - Adds read only flag support to assignDeviceToGroup() and
replaceDeviceInGroup().



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 18:25:40 +00:00
Mark Buechler
7133b84a7d - Adds rename_group functionality with renameGroup().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 18:14:32 +00:00
Mark Buechler
2afac68fa6 - Added support for new move and replace commands with moveUser()
and replaceDeviceInGroup() and increased the min. SCST supported
  version to 1.0.2.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1098 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 18:05:06 +00:00
Vladislav Bolkhovitin
b81357d452 scstadmin docs improved
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-17 17:28:05 +00:00
Mark Buechler
9f0161b78d - Minor change - Change 'since' to 'for' in ChangeLog so the version isn't misleading.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@806 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-27 19:53:10 +00:00
Mark Buechler
a727afe5e0 - Added -resyncdev option to work with the new SCST resync_size option.
- SCST.pm: Added resyncDevice()
- SCST.pm: General cleanup.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@784 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-16 17:16:40 +00:00
Mark Buechler
f85d726683 Small fix..
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@778 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 20:06:27 +00:00
Vladislav Bolkhovitin
3cdc6fef5b Patch from Frank Zago fixing scstadmin typos
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@735 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-02 18:18:00 +00:00
Vladislav Bolkhovitin
643c7ab2d1 Patch from Ruben Laban <r.laban@ism.nl>:
I replaced all occurences of DISTDIR with DESTDIR and also introduced SBINDIR (and friends) to some other Makefiles. 



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@719 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-25 19:33:10 +00:00
Vladislav Bolkhovitin
988f8d98fc Patch from Ruben Laban <r.laban@ism.nl> to make the Makefiles more packager friendly with some modifications.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-19 14:20:07 +00:00
Mark Buechler
36db05162a Re-order Makefile install and uninstall a bit. Specifically
for the install so lsb commands come last should lsb not exist
on the system, at least the rest of install works.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@670 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-11 16:16:53 +00:00
Mark Buechler
b0a902a6a1 Add lsb support for init.d scripts. Patch from Bart Van Assche.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@669 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-11 16:09:45 +00:00
Vladislav Bolkhovitin
5026d92ad0 Access control docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@624 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-12-26 17:40:30 +00:00
Mark Buechler
b4c37abdb2 - Fixed a removeDevice() case when using -ForceConfig. Spotted by Ondrej Palkovsky.
- SCST.pm: Cosmetic changes to error messages - include the handler name.
- SCST.pm: Quote handlers, handler IOs, devices, users and groups in error messages.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@623 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-12-18 17:30:37 +00:00
Mark Buechler
40e56edbbd - Cosmetic fixes by Witold Kowolik and increment version.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@620 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-12-18 16:11:32 +00:00
Mark Buechler
c7fafb82ab - Fixed enabling/disabling targets. Spotted by Witold Kowolik.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@619 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-12-18 16:05:55 +00:00
Mark Buechler
1d168fae23 - Fix a check in SCST::removeUser(), spotted by Witold Kowolik.
- Changed a few returns to 1 instead of $TRUE since really they're
  int returns and not boolean.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@618 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-12-18 16:00:34 +00:00
Mark Buechler
76d0a69737 - Added patch my Witold Kowolik to allow enable/disable of qla_isp cards.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@613 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-12-09 18:57:32 +00:00
Mark Buechler
d530e39e3a - Applied patch from Witold Kowolik with modifications,
simplifies/fixes option parsing.
- Added new REMOVABLE option.
- Allow options to be specified in lowercase.
- Misc. fixes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@612 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-12-09 18:28:29 +00:00
Vladislav Bolkhovitin
5cfcd159d4 Minor scstadmin-related improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@464 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-17 17:56:57 +00:00
Mark Buechler
6abcdbd392 - Added init enable instructions to "make install" and README file.
- Changed VERSION on top-level Makefile to MODULE_VERSION to be more clear.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@460 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-14 20:00:18 +00:00