Commit Graph

93 Commits

Author SHA1 Message Date
Mark Buechler
7bfbb41963 - When reading deprecated config files, don't configure empty groups.
- Minor formatting fix in writeConfiguration().



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1863 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-22 16:29:27 +00:00
Mark Buechler
f896acc78c - Forgot to rename sysfs to scstadmin.sysfs.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1862 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-22 14:59:08 +00:00
Mark Buechler
be6f9f219b - Rename sysfs and procfs to better names.
- Specify module use version for procfs scstadmin.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1861 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-22 14:51:08 +00:00
Mark Buechler
253c80692e - Integrate scstadmin's Makefile with enable_proc and
disable_proc so the correct scstadmin version is
  installed.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1860 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-22 14:47:16 +00:00
Mark Buechler
627b323dbe - Missed a spot where scst base attributes are getting written
even if they aren't key attributes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1854 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-21 20:26:47 +00:00
Mark Buechler
6f8dfe947f - Handle Default and Default_ groups. Default_X groups will not
be configured if the associated target X has not been pre-configured.
- Misc. fixes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-21 17:24:48 +00:00
Mark Buechler
ffd2803eca - When reading and old configuration file, if no targets
are enabled, add groups/initiators for all known targets.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1851 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-21 15:28:21 +00:00
Mark Buechler
bd48c8f119 - Check for non-existent devices and warn/remove them from read config.
- Error out if a target doesn't exist to prevent removing potentially
  good running config.
- Be sure to remove luns and initiators before the group they're in.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1820 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-13 19:12:44 +00:00
Mark Buechler
4e9f58c279 - Fixed driver/target attribute setting as well as dynamic attribute
adding and deleting. I must have been low on meds the first time
  I wrote those.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1818 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-13 18:27:36 +00:00
Mark Buechler
9e11c29d06 - Fix handling of /dev paths.
- Check for device paths which have a '/' in checkConfiuration().



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1817 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-13 15:15:11 +00:00
Mark Buechler
10339ef259 - Fixed empty CREATE_ATTRIBUTES.
- Added version requirement to SCST::SCST.
- Added support for deleting of dynamic attributes.
- Fixed support for changing non-dynamic attributes.
- Fixed (sorta) vcdrom handler.

Still possibly broken:

- Adding/deleting dynamic attributes is a bit broken in my
  SCST tree for some reason. I suspect this may be fixed
  in a later svn commit.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1805 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-07 18:12:40 +00:00
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