Commit Graph

57 Commits

Author SHA1 Message Date
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
Mark Buechler
4b459b7648 Removed duplicate SCST.pm module file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@459 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-14 19:44:04 +00:00
Mark Buechler
908e8f76dd - Added a proper Makefile.PL to SCST::SCST so now we have a also a
proper man page.
- Renamed Changes to ChangeLog
- Updated README to include instructions for installing the perl module.
- Renamed SCST perl module directory tp scst-0.7.4



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 17:32:42 +00:00
Vladislav Bolkhovitin
8c71b68271 - Version changed to 1.0.1
- Switched back to the debug mode



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 16:44:01 +00:00
Vladislav Bolkhovitin
299b079f7c Pending changes to match the 1.0.0 released packeges
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@436 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-08 19:21:22 +00:00
Vladislav Bolkhovitin
79cb40d73a - Install/uninstall added
- Version fixed


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@431 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-07 17:51:53 +00:00
Mark Buechler
8aa85fae74 Added option mapping NV -> NV_CACHE.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@414 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-13 13:38:46 +00:00
Vladislav Bolkhovitin
2c7a042a89 Small typo noticed by Tomasz Chmielewski
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@254 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-02-08 16:20:27 +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
Mark Buechler
ae6f85074d - Fixed config file parsing for null groups when a group
name was the same as an assignment immediately following
  it.
- Added support for undefined groups at the time of assignment.
  If a given group does not exist, an empty group will be
  created and a warning will be issued.
- Make method cleanupString() in SCST::SCST private.
- Minor updates.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@219 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-07 19:00:58 +00:00
Mark Buechler
3c952e4d0f - Allow for empty groups (groups with no users) for iSCSI.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@185 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-07 19:48:20 +00:00
Mark Buechler
cf4c66e1f4 - Fix really stupid mistake where config commits were using same path
for each device.
- Added option processing. The new API wants the option BLOCKIO,
  but SCST then shows the device having been opened with
  option BIO. We now warp BIO to BLOCKIO.
- Added the concept of handler aliases. Handler vdisk with
  option BLOCKIO shows as a handler of vdisk_blk. We now
  warp vdisk_blk to just vdisk.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@184 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-07 19:04:51 +00:00
Vladislav Bolkhovitin
fd6744d33e scst_fileio renamed to scst_vdisk
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@172 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-27 10:49:04 +00:00
Vladislav Bolkhovitin
1d694781ee scsi_tgt renamed to scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@169 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-24 16:40:56 +00:00
Mark Buechler
5a261fcdd6 - Fixed applyConfiguration() to apply a full config in -ForceConfig mode
- Fixed device handler switches
- Fixed device assignment LUN changes
- Fixed handling of disabled handlers (like dev_disk, dev_cdrom, etc from compile time)



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-22 18:23:12 +00:00