Commit Graph

82 Commits

Author SHA1 Message Date
Mark Buechler b151a59182 - Handle removing virtual targets on -clear_config.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1776 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-15 19:22:31 +00:00
Mark Buechler ef331b97d5 - More work on dynamic attributes. Both hardware and virtual targets/drivers
should be working at this point.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1775 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-15 19:06:38 +00:00
Mark Buechler 2cab37c2c2 - Better handling on 'enabled' attribute.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1774 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-15 17:12:16 +00:00
Mark Buechler 2da1657b43 - Fix for calls to driverIsVirtualCapable().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1773 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-15 16:48:56 +00:00
Mark Buechler 3016232224 - Small fix to driverIsVirtualCapable().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1772 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-15 16:46:17 +00:00
Mark Buechler d6053c491b - Changes to scstadmin.sysfs necessary for the recent module changes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1771 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-15 15:08:39 +00:00
Mark Buechler 935f9f3e6a - Finish up dynamic attribute adding/deleting for virtual capable
drivers & targets.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1770 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-15 15:07:54 +00:00
Mark Buechler dcc73eb66b - More "parameter" to "attribute" changes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1754 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-09 18:51:03 +00:00
Mark Buechler 664a307edc - Small type fix in session().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1753 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-09 18:43:45 +00:00
Mark Buechler 1ea25d2975 - Rename "parameters" for "attributes" to be more inline with
SCST terminology.
- Support adding attributes to drivers & targets.
- Support adding virtual targets.
- Support luns outside of ini groups.
- New option -nonkey to allow writing of non-key attributes to
  the config file.

TODO: Cleanup writeConfiguration() - it has a LOT of redundant code.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1752 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-09 18:35:09 +00:00
Mark Buechler eba08eadf5 - Rename "parameters" for "attributes" to be more inline with
SCST terminology.
- Renumbered error codes.
- Added ability to create attributes for drivers & targets.
- Make distinction between key attributes and normal attributes.
- Force attribute "enabled" to be a key attribute.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1751 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-09 18:31:42 +00:00
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