mirror/scst/.git
14 years agoMinor fixes
vlnb [Tue, 14 Aug 2007 17:08:43 +0000 (17:08 +0000)]
Minor fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@161 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Version changed in scst_user_spec.txt
vlnb [Tue, 14 Aug 2007 17:03:42 +0000 (17:03 +0000)]
 - Version changed in scst_user_spec.txt
 - Minor fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@160 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- Call of pre_unreg_sess() moved to scst_mgmt_thread, because of scst_mutex deadlock...
vlnb [Tue, 14 Aug 2007 16:54:54 +0000 (16:54 +0000)]
- Call of pre_unreg_sess() moved to scst_mgmt_thread, because of scst_mutex deadlock with scst_user's pre_unreg_sess() handler
 - scst_check_local_events() cleanups
 - In scst_user notification about aborted commands added, user space interface changed
 - Other minor fixes and cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@159 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFixes a race, when an event comes on the driver unload, so DPC thread will try to...
vlnb [Fri, 10 Aug 2007 08:40:54 +0000 (08:40 +0000)]
Fixes a race, when an event comes on the driver unload, so DPC thread will try to use already half destroyed data.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@158 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Docs updated
vlnb [Wed, 8 Aug 2007 09:52:23 +0000 (09:52 +0000)]
 - Docs updated
 - Minor fix

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@157 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Implemented temporary workaround to work on 2.6.22+ kernels
vlnb [Tue, 7 Aug 2007 17:12:21 +0000 (17:12 +0000)]
 - Implemented temporary workaround to work on 2.6.22+ kernels
 - qla2x00-target/ChangeLog updated
 - Typo in scst_page.html fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@156 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - In scst_user fixed potential deadlock
vlnb [Fri, 3 Aug 2007 09:57:15 +0000 (09:57 +0000)]
 - In scst_user fixed potential deadlock
 - scst_check_local_events() added
 - Minor cleanups and fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@155 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Device blocking cleanups and fixes
vlnb [Tue, 31 Jul 2007 14:21:46 +0000 (14:21 +0000)]
 - Device blocking cleanups and fixes
 - tags logging made unsigned

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@154 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Semaphores converted to mutexes
vlnb [Mon, 30 Jul 2007 11:21:04 +0000 (11:21 +0000)]
 - Semaphores converted to mutexes
 - pre_exec() callback added
 - *_DBG_SPECIAL() macroses added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@153 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPartial update for 2.6.22
vlnb [Mon, 23 Jul 2007 11:51:05 +0000 (11:51 +0000)]
Partial update for 2.6.22

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@152 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoUpdate for 64-bit tags
vlnb [Wed, 18 Jul 2007 08:50:50 +0000 (08:50 +0000)]
Update for 64-bit tags

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@151 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatch from Terry Greeniaus:
vlnb [Wed, 18 Jul 2007 08:41:44 +0000 (08:41 +0000)]
Patch from Terry Greeniaus:

We use the 64-bit tag field in the SRP commands to store information allowing us to track each command.  However, SCST only saves/uses 32-bits out of this 64-bit field.  This causes our code to fail when we get a response SRP command that doesn't match any tags we used.

I have updated SCST to work with our product by changing it to save all 64-bits of the tag.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@150 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatch from Nathan Bullock.
vlnb [Fri, 13 Jul 2007 15:02:20 +0000 (15:02 +0000)]
Patch from Nathan Bullock.

We are using OFED target machines to export a large number of disks, many of which are just NULLIO disks, but we have noticed that VPD numbers have a significant tendency to conflict. For example if we name one disk abc12 and another abc21 they will end up with the same VPD.

We are using a quick, slightly hackish way to solve this, by just creating a random hash for each ascii value and then rotating that hash based on the position of the character in the name. If you would like here is our changes.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@149 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFew minor races fixed
vlnb [Fri, 13 Jul 2007 09:34:25 +0000 (09:34 +0000)]
Few minor races fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@148 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoLittle comment fix.
swgruszka [Wed, 11 Jul 2007 09:30:10 +0000 (09:30 +0000)]
Little comment fix.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@147 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agolun_t changed to 64 bits. Don't know why it was 32 bits
vlnb [Tue, 10 Jul 2007 16:47:43 +0000 (16:47 +0000)]
lun_t changed to 64 bits. Don't know why it was 32 bits

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@146 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatch from Stanislaw Gruszka:
vlnb [Tue, 10 Jul 2007 16:39:38 +0000 (16:39 +0000)]
Patch from Stanislaw Gruszka:

- pass FC transport error to SCST
- give SCST info about WWN of remote initiator
- info about expected transfer length and direction
- unifying printk error messages

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@145 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agotrace_buf_lock implemented
vlnb [Thu, 5 Jul 2007 16:23:09 +0000 (16:23 +0000)]
trace_buf_lock implemented

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@144 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoAdded previously renamed (deleted) patches
vlnb [Thu, 5 Jul 2007 14:39:37 +0000 (14:39 +0000)]
Added previously renamed (deleted) patches

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@143 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Kernel patches were renamed (in this commit only deleted)
vlnb [Thu, 5 Jul 2007 14:37:36 +0000 (14:37 +0000)]
 - Kernel patches were renamed (in this commit only deleted)
 - VDISK_ONLY was removed, SCSI_EXEC_REQ_FIFO_DEFINED, defined by corresponding kernel patch used instead
 - Minor fixes
 - Docs updates

All users will need to revert old SCST kernel patch and apply the corresponding new one.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@142 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSeparate block devices from non-block ones
vlnb [Thu, 5 Jul 2007 14:20:17 +0000 (14:20 +0000)]
Separate block devices from non-block ones

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@141 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatch from Alessandro Premoli:
vlnb [Mon, 2 Jul 2007 11:36:22 +0000 (11:36 +0000)]
Patch from Alessandro Premoli:

First, the problem: you cannot calculate sgv_max_local_order and
sgv_max_trans_order by excess and then compare them with
get_order(size). The maximum number of local (SG + trans) entries may be
112 (like in amd64 case) and you bzero 128 sg_entries for every
allocation request between 65 and 128 pages because the order is the
same. This is the reason why single transfers of (70 * PAGE_SIZE) =
~285k or more fail on amd64. On i386 the limit is higher, since you can
shrink more records in one page, and so it's very difficult to reach.

Now, the solution: I created a patch, which consists in decreasing
sgv_max_local_order and sgv_max_trans_order by 1.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@140 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFix of WARN_ON_ONCE() braindamage
vlnb [Fri, 29 Jun 2007 09:41:09 +0000 (09:41 +0000)]
Fix of WARN_ON_ONCE() braindamage

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@139 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatch from Alessandro Premoli fixes all the warnings of scst on 64-bit platforms
vlnb [Wed, 27 Jun 2007 16:19:38 +0000 (16:19 +0000)]
Patch from Alessandro Premoli fixes all the warnings of scst on 64-bit platforms

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@138 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor debug changes
vlnb [Wed, 27 Jun 2007 10:41:44 +0000 (10:41 +0000)]
Minor debug changes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@137 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSCST page updated to list the QLogic ISP driver
vlnb [Mon, 25 Jun 2007 17:19:35 +0000 (17:19 +0000)]
SCST page updated to list the QLogic ISP driver

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@136 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatch from Stanislaw Gruszka <stanislawg1@open-e.com>
vlnb [Mon, 25 Jun 2007 16:32:46 +0000 (16:32 +0000)]
Patch from Stanislaw Gruszka <stanislawg1@open-e.com>

This is SCST driver for ISP Qlogic chipsets commonly used in many SCSI and FC
host bus adapters. Supported chipset are listed in README file, incomplete
list of supported HBA's is in doc/Hardware.txt .

It is based on Matthew Jacob's multiplatform driver for ISP chipsets,
which can be download from ftp://ftp.feral.com/pub/isp/isp_dist.tgz

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@135 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- Fixed applyConfiguration() to apply a full config in -ForceConfig mode
mgandalf [Fri, 22 Jun 2007 18:23:12 +0000 (18:23 +0000)]
- 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: https://scst.svn.sourceforge.net/svnroot/scst/trunk@134 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- Version increment (almost forgot)
mgandalf [Thu, 21 Jun 2007 17:30:34 +0000 (17:30 +0000)]
- Version increment (almost forgot)

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@133 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- Fixed applyConfiguration() to remove entries before adding new ones.
mgandalf [Thu, 21 Jun 2007 17:24:12 +0000 (17:24 +0000)]
- Fixed applyConfiguration() to remove entries before adding new ones.
- Fixed changes and differences counts
- Added intelligence around virtual/physical/performance type devices

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@132 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- Fixed closing a device with -RemoveDev
mgandalf [Wed, 20 Jun 2007 13:45:19 +0000 (13:45 +0000)]
- Fixed closing a device with -RemoveDev
- Added BLOCKIO option support

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@131 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- Updated for vdisk/vcdrom from disk_fileio/cdrom_fileio
mgandalf [Tue, 19 Jun 2007 20:21:27 +0000 (20:21 +0000)]
- Updated for vdisk/vcdrom from disk_fileio/cdrom_fileio
- Added new errorString() method to SCST/SCST.pm containing
  error message of last error encountered.
- Minor updates to scst_db - UNTESTED
- Changed SCST/SCST.pm to look for files like vdisk/vdisk instead
  of vdisk/type to gather list of valid device handlers
- Minor bug fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@130 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed race with wake_up()
vlnb [Fri, 15 Jun 2007 09:02:57 +0000 (09:02 +0000)]
 - Fixed race with wake_up()
 - Some cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@129 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSVN access method changed to https://scst.svn.sourceforge.net/svnroot/scst
vlnb [Wed, 13 Jun 2007 10:04:45 +0000 (10:04 +0000)]
SVN access method changed to https://scst.svn.sourceforge.net/svnroot/scst

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@128 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor threads related fixes
vlnb [Fri, 8 Jun 2007 14:08:06 +0000 (14:08 +0000)]
Minor threads related fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@127 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoAdded limit on maximum queued on a device commands
vlnb [Fri, 8 Jun 2007 10:54:18 +0000 (10:54 +0000)]
Added limit on maximum queued on a device commands

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@126 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Threads made per-device
vlnb [Fri, 8 Jun 2007 10:25:29 +0000 (10:25 +0000)]
 - Threads made per-device
 - Minor cleanups and fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@125 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoDocs update
vlnb [Fri, 1 Jun 2007 15:05:54 +0000 (15:05 +0000)]
Docs update

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@124 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoDocs update
vlnb [Fri, 1 Jun 2007 11:11:19 +0000 (11:11 +0000)]
Docs update

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@123 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoVersion changed to 0.9.6
vlnb [Thu, 31 May 2007 17:13:27 +0000 (17:13 +0000)]
Version changed to 0.9.6

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@122 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Module scst_user and user space utility to test it added
vlnb [Thu, 31 May 2007 17:11:57 +0000 (17:11 +0000)]
 - Module scst_user and user space utility to test it added
 - Support for per-target default security groups added
 - FILEIO made multithreaded
 - BLOCKIO made async
 - Other improvements, fixes and cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@121 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSupport for per-target default security groups added
vlnb [Thu, 31 May 2007 17:10:55 +0000 (17:10 +0000)]
Support for per-target default security groups added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@120 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSupport for per-target default security groups added
vlnb [Thu, 31 May 2007 17:02:41 +0000 (17:02 +0000)]
Support for per-target default security groups added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@119 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSome docs updates
vlnb [Thu, 31 May 2007 15:13:13 +0000 (15:13 +0000)]
Some docs updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@118 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoOops, "is" instead of "isn't"
vlnb [Thu, 17 May 2007 15:35:45 +0000 (15:35 +0000)]
Oops, "is" instead of "isn't"

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@117 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoLinear search in the LUN translation routines scst_translate_lun()
vlnb [Thu, 17 May 2007 15:30:02 +0000 (15:30 +0000)]
Linear search in the LUN translation routines scst_translate_lun()
and scst_mgmt_translate_lun() was changed to a hash-based one, thanks
to Michael G. Byrnes.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@116 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor fixes, cleanups and updates
vlnb [Thu, 17 May 2007 14:45:18 +0000 (14:45 +0000)]
Minor fixes, cleanups and updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@115 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoInternal REQUEST SENSE fixes
vlnb [Tue, 8 May 2007 09:26:48 +0000 (09:26 +0000)]
Internal REQUEST SENSE fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@114 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatch for 2.6.21. Patch 26_scst-2.6.18.patch also applies on 2.6.21, but a gap betwee...
vlnb [Tue, 8 May 2007 09:22:48 +0000 (09:22 +0000)]
Patch for 2.6.21. Patch 26_scst-2.6.18.patch also applies on 2.6.21, but a gap between .18 and .21 is too scaring ;)

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@113 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoLOG_SELECT/SENSE stub added. Looks like it is more correct way to refuse those commands
vlnb [Fri, 27 Apr 2007 14:46:22 +0000 (14:46 +0000)]
LOG_SELECT/SENSE stub added. Looks like it is more correct way to refuse those commands

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@112 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- SGV caching changed to be more space efficient
vlnb [Tue, 24 Apr 2007 16:44:23 +0000 (16:44 +0000)]
- SGV caching changed to be more space efficient
- pre_unreg_sess() added to struct scst_dev_type
- Minor fixes and cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@111 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoVersion 0.9
vlnb [Tue, 24 Apr 2007 14:31:15 +0000 (14:31 +0000)]
Version 0.9

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@110 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoTypo fixed
vlnb [Mon, 16 Apr 2007 15:43:37 +0000 (15:43 +0000)]
Typo fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@109 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoVarious fixes, cleanups updates and preparations
vlnb [Tue, 3 Apr 2007 15:44:44 +0000 (15:44 +0000)]
Various fixes, cleanups updates and preparations

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@108 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agodev_done() made generic, small generic parse() optimization and cleanups
vlnb [Tue, 3 Apr 2007 14:51:18 +0000 (14:51 +0000)]
dev_done() made generic, small generic parse() optimization and cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@107 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFixed depmod to work for the necessary kernel, not the current one
vlnb [Tue, 3 Apr 2007 14:49:33 +0000 (14:49 +0000)]
Fixed depmod to work for the necessary kernel, not the current one

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@106 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoParse() functions made generic
vlnb [Tue, 3 Apr 2007 14:47:47 +0000 (14:47 +0000)]
Parse() functions made generic

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@105 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoCopyrights updated, "-g" added in DEBUG mode
vlnb [Tue, 3 Apr 2007 14:42:47 +0000 (14:42 +0000)]
Copyrights updated, "-g" added in DEBUG mode

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@104 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor fixes
vlnb [Mon, 2 Apr 2007 10:55:55 +0000 (10:55 +0000)]
Minor fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@103 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - D_SENSE value corrected
vlnb [Wed, 7 Mar 2007 17:10:45 +0000 (17:10 +0000)]
 - D_SENSE value corrected
 - REPORT DENSITY SUPPORT command added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@102 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- BLOCKIO made async
vlnb [Fri, 2 Mar 2007 16:29:36 +0000 (16:29 +0000)]
- BLOCKIO made async

- Docs updates

- Debug logging improvements

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@101 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFixed case, when resid == cmd->resp_data_len for real devices
vlnb [Fri, 2 Mar 2007 15:06:55 +0000 (15:06 +0000)]
Fixed case, when resid == cmd->resp_data_len for real devices

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@100 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMostly from Vu Pham:
vlnb [Wed, 28 Feb 2007 12:55:35 +0000 (12:55 +0000)]
Mostly from Vu Pham:

- Use submit_bio() instead of generic_make_request

- Fixes case, when exported device blocksize >512

Seems, BLOCKIO works now, although the following not done yet:

1. BLOCKIO version vdisk_exec_verify(). It is basically the same as for the plain read, but it should read in own local data buffer and compare data with the command's ones, if requested.

2. There is a need for test on the underlying device with blocksize >512.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@99 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor cleanups
vlnb [Thu, 22 Feb 2007 11:53:35 +0000 (11:53 +0000)]
Minor cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@98 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoBLOCKIO doc updated
vlnb [Thu, 22 Feb 2007 10:54:32 +0000 (10:54 +0000)]
BLOCKIO doc updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@97 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor fixes from/inspired by Vu Pham
vlnb [Thu, 22 Feb 2007 10:34:18 +0000 (10:34 +0000)]
Minor fixes from/inspired by Vu Pham

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@96 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoAdding blockio mode support to scst_vdisk
vlnb [Wed, 21 Feb 2007 18:15:19 +0000 (18:15 +0000)]
Adding blockio mode support to scst_vdisk

Signed-of-by: Vu Pham <huongvp@yahoo.com>
Merged by me.

Don't use it, currently it corrupts transferred data

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@95 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoRename FILEIO -> VDISK, part 2
vlnb [Wed, 21 Feb 2007 16:44:59 +0000 (16:44 +0000)]
Rename FILEIO -> VDISK, part 2

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@94 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoRename FILEIO -> VDISK, part 1
vlnb [Wed, 21 Feb 2007 15:48:58 +0000 (15:48 +0000)]
Rename FILEIO -> VDISK, part 1

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@93 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoVersion 0.4.
vlnb [Wed, 21 Feb 2007 15:09:25 +0000 (15:09 +0000)]
Version 0.4.

 - Support for partial data transfers added

 - Support asynchronous commands completions added

 - Few important notes added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@92 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoExecution context cleanup. Completed full support for SCSI task attributes (SIMPLE...
vlnb [Wed, 21 Feb 2007 12:50:48 +0000 (12:50 +0000)]
Execution context cleanup. Completed full support for SCSI task attributes (SIMPLE, ORDERED, etc.)
+ minor cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@91 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoA major locking and general code cleanup
vlnb [Wed, 21 Feb 2007 11:43:22 +0000 (11:43 +0000)]
A major locking and general code cleanup

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@90 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoOops, the previous commit was wrong. Fix it.
vlnb [Mon, 19 Feb 2007 12:55:54 +0000 (12:55 +0000)]
Oops, the previous commit was wrong. Fix it.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@89 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor fix for ABORTed on SIRQ commands
vlnb [Mon, 19 Feb 2007 10:46:53 +0000 (10:46 +0000)]
Minor fix for ABORTed on SIRQ commands

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@88 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoUpdate to work on 2.6.20 + minor fix
vlnb [Fri, 16 Feb 2007 11:11:18 +0000 (11:11 +0000)]
Update to work on 2.6.20 + minor fix

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@87 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFrom Erik Habbinga:
vlnb [Fri, 2 Feb 2007 12:26:50 +0000 (12:26 +0000)]
From Erik Habbinga:

This patch fixes a race condition where a pointer to the just-finished SCST command would interfere with the incoming target
command.

Also, printing out TargetStatusSendReq IOCStatus is now done in debug/tracing mode if we're a SCSI device and the expected "error" case for attempting to send simultaneous status and sense is triggered.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@86 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoHere is a patch to the scstadmin script that solves my startup problems, when
vlnb [Wed, 24 Jan 2007 13:31:00 +0000 (13:31 +0000)]
Here is a patch to the scstadmin script that solves my startup problems, when
initiator doesn't see the target and puts in the kernel log messages like that:

qla2300 0000:02:03.0: scsi(6:0:0): Abort command issued -- a 2002.
 6:0:0:0: scsi: Device offlined - not ready after error recovery
 6:0:0:0: rejecting I/O to offline device

All it does is move the enabling of target mode to the end of the
applyConfiguration subroutine. The key seems to be that target mode must
be enabled after SCST device and group assignments are configured.

From Brad Johnson <bjohnson@proficientsolutionsinc.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@85 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoIn Qlogic initiator driver (version 8.01.04) in qla2x00_rff_id() BIT_1 of the RFF_ID
vlnb [Wed, 24 Jan 2007 13:17:20 +0000 (13:17 +0000)]
In Qlogic initiator driver (version 8.01.04) in qla2x00_rff_id() BIT_1 of the RFF_ID
Feature bits is set, indicating to the name server that this is an
initiator. The attached patch sets BIT_0 instead if target mode is
enabled, indicating target mode support to the name server. (See the
INCITS FC-GS-4 document). This fixed many of my problems relating to
working with a switch fabric, including the discovery and addition of
the initiator ports in the fcports list.

From Brad Johnson <bjohnson@proficientsolutionsinc.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@84 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoBugfix for Fedora 6 kernel where GFP_ATOMIC constant is redefined, which lead to...
vlnb [Mon, 22 Jan 2007 10:38:18 +0000 (10:38 +0000)]
Bugfix for Fedora 6 kernel where GFP_ATOMIC constant is redefined, which lead to massive commands data
buffers memory allocations failures.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@83 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years ago - shutdown_mutex was replaced by shutdown_compl in hope that it will
vlnb [Thu, 18 Jan 2007 11:30:05 +0000 (11:30 +0000)]
 - shutdown_mutex was replaced by shutdown_compl in hope that it will
remove the lockdep's warning about "trying to register
 - Ability to trace SYNCHRONIZE_CACHE, FUA and ORDERED commands added to
FILEIO
 - NULLIO for FILEIO doesn't require anymore path to a real file/device

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@82 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoFrom Erik Habbinga:
vlnb [Thu, 18 Jan 2007 10:59:48 +0000 (10:59 +0000)]
From Erik Habbinga:

- corrects the amount of data transferred when cached sense data is used to satisfy a REQUEST SENSE command.

- removes support for non scatterlist buffers in scst_cmd (sg_cnt == 0).

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@81 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoMinor TM-related fixes
vlnb [Wed, 17 Jan 2007 14:47:21 +0000 (14:47 +0000)]
Minor TM-related fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@80 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoFrom Erik Habbinga: added note on REQUEST SENSE implementation
vlnb [Tue, 16 Jan 2007 17:51:48 +0000 (17:51 +0000)]
From Erik Habbinga: added note on REQUEST SENSE implementation

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@79 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoFrom Erik Habbinga:
vlnb [Tue, 16 Jan 2007 14:23:44 +0000 (14:23 +0000)]
From Erik Habbinga:

This patch further fixes sense handling for the LSI driver in the non-packetized SCSI case:

- this version doesn't crash if a REQUEST SENSE command is sent.
- added a big comment explaining sense caching implementation.
- INQUIRY responses are inspected and tagged command queuing bits are cleared if LSI is a SCSI controller, per previous discussions.
- pending sense is cleared on a bus reset.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@78 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoSome cleanup
vlnb [Fri, 12 Jan 2007 15:42:31 +0000 (15:42 +0000)]
Some cleanup

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@77 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoMinor tracing cleanups
vlnb [Thu, 11 Jan 2007 12:46:22 +0000 (12:46 +0000)]
Minor tracing cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@76 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoPatch from Erik Habbinga:
vlnb [Thu, 11 Jan 2007 12:39:10 +0000 (12:39 +0000)]
Patch from Erik Habbinga:

There are a few minor changes:

- fix some 80 char line length issues
- fix some indenting
- change scst_to_dma_dir to scst_to_tgt_dma_dir

The big issue is fixing the sending of sense data.  The LSI chip, when talking to a non-packetized SCSI initiator, cannot send both
status (i.e. check condition) and sense data (from autosense) in the same transaction.  The result is a 006B
(MPI_IOC_STATUS_TARGET_STS_DATA_NOT_SENT) IOCStatus value when this is attempted.  The sense data doesn't get transmitted over the
SCSI cable in this case.  My fix, which is modeled on LSI's own SCSI target implementation, is to cache sense data before attempting
to send it.  If a REQUEST SENSE command comes in with pending sense, the LSI driver will handle the REQUEST SENSE command on it's
own without involving SCST.  Pending sense is cleared once the REQUEST SENSE command is handled, or if any other command comes in.
Sense data is cached per initiator.  Apparantely this problem is only related to non-packetized SCSI interfaces.  That's all I have
to test with, so I can't vouch for SAS or FC.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@75 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoAtomic memory barriers cleanup. Inspired by Ming Zhang.
vlnb [Tue, 9 Jan 2007 14:52:16 +0000 (14:52 +0000)]
Atomic memory barriers cleanup. Inspired by Ming Zhang.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@74 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoMinor fixes and cleanups from Ming Zhang:
vlnb [Mon, 8 Jan 2007 17:56:35 +0000 (17:56 +0000)]
Minor fixes and cleanups from Ming Zhang:
 - Fixed scst_cur_cmd_mem leak for real devices
 - Since scst_unregister_target_template() returnes void it should use down() instead of down_interruptible()
 - Cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@73 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoCall graphs from Ming
vlnb [Mon, 8 Jan 2007 14:05:24 +0000 (14:05 +0000)]
Call graphs from Ming

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@72 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoA bunch of cleanups and minor fixes by Ming:
vlnb [Fri, 29 Dec 2006 11:38:43 +0000 (11:38 +0000)]
A bunch of cleanups and minor fixes by Ming:
 - Dead code removed from scst_prepare_space()
 - LUN and CDB check moved out of EXTRACHECKS section
 - Fixed error processing in scst_register_dev_driver(), scst_sgv_pools_init() and scst_register()
 - Since scst_unregister_dev_driver() returnes void it should use down() instead of down_interruptible()
 - Clean out scst_num_cpus
 - Fixed race in scst_register_target_template()

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@71 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoSCST user space device handler. User space interface description. Version 0.3.
vlnb [Thu, 28 Dec 2006 11:10:22 +0000 (11:10 +0000)]
SCST user space device handler. User space interface description. Version 0.3.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@70 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years ago - Cleanup: masked_status deleted, use status instead
vlnb [Thu, 21 Dec 2006 11:04:34 +0000 (11:04 +0000)]
 - Cleanup: masked_status deleted, use status instead
 - In FILEIO report in MODE SENSE if NV_CACHE enabled that no commands reordering is possible

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@69 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoFrom Erik Habbinga:
vlnb [Wed, 20 Dec 2006 17:53:41 +0000 (17:53 +0000)]
From Erik Habbinga:

This patch allows reading and writing of the LSI SCSI target id via /proc/scsi_tgt/mpt_scst/x (where x is the controller number). Reading that file dumps various statistics as before:

# cat /proc/scsi_tgt/mpt_scst/0
ProductID        :0x020b (LSI53C1030)
Target Enable    :True
Target ID        :3
Capabilities     :0x7087fa0
PhysicalInterface:0x30000fe
Configuration    :0x3000800
OnBusTimerValue  :0x0
TargetConfig     :0x1
IDConfig         :0x0
PortFlags        :0x2000000
PortSettings     :0x37020000
  Device 00: 0x7087fa0, 0x0
  Device 01: 0x7087fa0, 0x0
  Device 02: 0x7087fa0, 0x0
  Device 03: 0x7087fa0, 0x0
  Device 04: 0x7087fa0, 0x0
  Device 05: 0x7087fa0, 0x0
  Device 06: 0x7087fa0, 0x0
  Device 07: 0x7087fa0, 0x0
  Device 08: 0x7087fa0, 0x0
  Device 09: 0x7087fa0, 0x0
  Device 10: 0x7087fa0, 0x0
  Device 11: 0x7087fa0, 0x0
  Device 12: 0x7087fa0, 0x0
  Device 13: 0x7087fa0, 0x0
  Device 14: 0x7087fa0, 0x0
  Device 15: 0x7087fa0, 0x0

Writing "target_id:n" will change the SCSI target id to n.

# echo "target_id:5" > /proc/scsi_tgt/mpt_scst/0
# cat /proc/scsi_tgt/mpt_scst/0
ProductID        :0x020b (LSI53C1030)
Target Enable    :True
Target ID        :5
Capabilities     :0x7087fa0
....

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@68 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoThis patch removes usage of bexx_to_cpu() on lba and len conversion, because possible...
vlnb [Tue, 19 Dec 2006 18:07:56 +0000 (18:07 +0000)]
This patch removes usage of bexx_to_cpu() on lba and len conversion, because possible unalined access, + some cosmetics. From Ming Zhang.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@67 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoNot debug compilation fixed
vlnb [Mon, 18 Dec 2006 15:07:12 +0000 (15:07 +0000)]
Not debug compilation fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@66 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoChangeLog updated
vlnb [Fri, 15 Dec 2006 16:49:15 +0000 (16:49 +0000)]
ChangeLog updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@65 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years ago - Patch from Ming Zhang <blackmagic02881@gmail.com>:
vlnb [Fri, 15 Dec 2006 16:30:30 +0000 (16:30 +0000)]
 - Patch from Ming Zhang <blackmagic02881@gmail.com>:
Small patch to enhance the 2TB support. MS Windows only like a 12 byte
response. It seems to still follow the sbc2r10 spec instead of the r16
spec we use.

detailed info can be found at
http://sourceforge.net/mailarchive/forum.php?thread_id=31236894&forum_id=40837

 - Small cleanup

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@64 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoSmall cleanup to the prev. commit
vlnb [Fri, 15 Dec 2006 16:14:04 +0000 (16:14 +0000)]
Small cleanup to the prev. commit

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@63 d57e44dd-8a1f-0410-8b47-8ef2f437770f

15 years agoUpdate to allow SCST built inside Linux kernel. Done together with Erik Habbinga.
vlnb [Fri, 15 Dec 2006 15:59:21 +0000 (15:59 +0000)]
Update to allow SCST built inside Linux kernel. Done together with Erik Habbinga.

--This line, and below, will be ignored--

_M   trunk/mpt
_M   trunk/mpt/in-tree
M    trunk/mpt/in-tree/Makefile.diff
M    trunk/mpt/mpt_scst.c
M    trunk/mpt/Makefile
M    trunk/qla2x00t/qla2x00-target/qla2x00t.c
M    trunk/scst/kernel/in-tree/Makefile.scsi_tgt
D    trunk/scst/include/scst_debug.c
M    trunk/scst/include/scst_debug.h
M    trunk/scst/src/scst_proc.c
M    trunk/scst/src/scst_priv.h
A    trunk/scst/src/scst_debug.c
M    trunk/scst/src/scst_targ.c
M    trunk/scst/src/scst_mem.c
M    trunk/scst/src/Makefile
M    trunk/scst/src/scst.c
M    trunk/scst/src/dev_handlers/scst_cdrom.c
M    trunk/scst/src/dev_handlers/scst_modisk.c
M    trunk/scst/src/dev_handlers/scst_changer.c
M    trunk/scst/src/dev_handlers/scst_fileio.c
M    trunk/scst/src/dev_handlers/scst_tape.c
M    trunk/scst/src/dev_handlers/scst_disk.c
M    trunk/scst/src/dev_handlers/scst_processor.c
M    trunk/scst/src/dev_handlers/scst_raid.c
M    trunk/scst/src/dev_handlers/Makefile
M    trunk/scst/src/dev_handlers/scst_dev_handler.h
M    trunk/scst/README

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@62 d57e44dd-8a1f-0410-8b47-8ef2f437770f