mirror/scst/.git
14 years agoSimple bugfix for concurrent work of several targets, which eventually turned out...
vlnb [Fri, 7 Dec 2007 17:00:42 +0000 (17:00 +0000)]
Simple bugfix for concurrent work of several targets, which eventually turned out in a massive cleanup and fixes.
Particularly:
 - Added ability for target drivers to set result of command's status delvery to initiator (see scst_set_delivery_status())
 - Added ability for user space devices set some mode page parameters to make SCST core behave correspondingly
 - TM improvements
 - Few possible crashes fixed
 - Logging improvements
 - Performance improvements
 - Docs updates

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

14 years agoPatch from Krzysztof Blaszkowski <kb@sysmikro.com.pl>: Let SLAB decide amount of...
vlnb [Mon, 26 Nov 2007 16:47:16 +0000 (16:47 +0000)]
Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl>: Let SLAB decide amount of pages per slab

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

14 years ago - Fixes build problem in perf mode
vlnb [Mon, 26 Nov 2007 16:23:50 +0000 (16:23 +0000)]
 - Fixes build problem in perf mode
 - Switches between debug modes made as Makefile targets, thanks Tomasz Chmielewski <mangoo@wpkg.org> for idea

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

14 years agoFixes crash on reservation conflict + some cleanups
vlnb [Fri, 16 Nov 2007 18:46:02 +0000 (18:46 +0000)]
Fixes crash on reservation conflict + some cleanups

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

14 years ago - Fixes hang in TCP CLOSE/CLOSE_WAIT stages
vlnb [Thu, 15 Nov 2007 16:12:08 +0000 (16:12 +0000)]
 - Fixes hang in TCP CLOSE/CLOSE_WAIT stages
 - Minor debug improvements

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

14 years agoFixes race found by Anton Novodvorsky <anovodvorsky@gmail.com>
vlnb [Thu, 15 Nov 2007 15:54:53 +0000 (15:54 +0000)]
Fixes race found by Anton Novodvorsky <anovodvorsky@gmail.com>

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

14 years agoNow if iSCSI daemon fails to load config file, it fails to load.
vlnb [Tue, 13 Nov 2007 17:28:28 +0000 (17:28 +0000)]
Now if iSCSI daemon fails to load config file, it fails to load.

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

14 years ago - Now iSCSI target service load considered successful if at least one listen socket...
vlnb [Mon, 12 Nov 2007 11:21:54 +0000 (11:21 +0000)]
 - 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: https://scst.svn.sourceforge.net/svnroot/scst/trunk@220 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- Fixed config file parsing for null groups when a group
mgandalf [Wed, 7 Nov 2007 19:00:58 +0000 (19:00 +0000)]
- 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: https://scst.svn.sourceforge.net/svnroot/scst/trunk@219 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFixes regression introduced in r209
vlnb [Wed, 7 Nov 2007 15:28:43 +0000 (15:28 +0000)]
Fixes regression introduced in r209

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

14 years agoMinor pass-through related fixes and logging improvelemnts
vlnb [Fri, 2 Nov 2007 19:20:59 +0000 (19:20 +0000)]
Minor pass-through related fixes and logging improvelemnts

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

14 years agoremove no_autosense workaround
swgruszka [Fri, 2 Nov 2007 11:02:50 +0000 (11:02 +0000)]
remove no_autosense workaround
on receive check if all data was transferred before pass it to scst

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

14 years agosynchronize with feral cvs repository, this time Matthew fix autosense problems :-)
swgruszka [Fri, 2 Nov 2007 08:43:47 +0000 (08:43 +0000)]
synchronize with feral cvs repository, this time Matthew fix autosense problems :-)

+ The 24XX code in isp_target_start_ctio was setting the wrong values
to set SENSE LENGTH VALID for the FCP RSPNS IU.

+ Amusingly enough, this apparently didn't matter. In fact, once sense
data was being put into the ct7_entry_t there was *still* a problem
and REQUEST SENSE was being sent by the Linux initiator.

+ What *was* happening is that the 24XX requries the response data to
be 32 bit swapped. This is not obvious from the chip documents.

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

14 years agoCleanups, debug imporvements and minor fixes
vlnb [Thu, 1 Nov 2007 17:07:07 +0000 (17:07 +0000)]
Cleanups, debug imporvements and minor fixes

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

14 years ago - Patch from Tomasz Chmielewski <mangoo@wpkg.org>: fixes incorrect shutdown on Debia...
vlnb [Fri, 26 Oct 2007 15:58:50 +0000 (15:58 +0000)]
 - Patch from Tomasz Chmielewski <mangoo@wpkg.org>: fixes incorrect shutdown on Debian systems.

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

14 years ago - Fixed ignoring errors on the service start. Reported by Tomasz Chmielewski <mangoo...
vlnb [Thu, 25 Oct 2007 16:19:40 +0000 (16:19 +0000)]
 - Fixed ignoring errors on the service start. Reported by Tomasz Chmielewski <mangoo@wpkg.org>
 - Minor fixes

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

14 years ago - Fixed typos noticed by Tomasz Chmielewski
vlnb [Thu, 25 Oct 2007 10:46:29 +0000 (10:46 +0000)]
 - Fixed typos noticed by Tomasz Chmielewski
 - Forgotten fixes for previous commit
--Tohis line, and those below, will be ignored--

M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.16.29.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.21.1.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.22.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.23.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.18.1.patch
M    trunk/scst-full_perf.patch
M    trunk/scst-release.patch

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

14 years ago - Cleanups and fixes in transfer length and direction processing.
vlnb [Thu, 25 Oct 2007 09:54:00 +0000 (09:54 +0000)]
 - Cleanups and fixes in transfer length and direction processing.

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

14 years agoUpdate to work on 2.6.23+ kernels + some other related fixes and updates
vlnb [Tue, 23 Oct 2007 15:35:20 +0000 (15:35 +0000)]
Update to work on 2.6.23+ kernels + some other related fixes and updates

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

14 years agoremove not necessary linux 2.4 Makefiles, isp stops support 2.4
swgruszka [Tue, 23 Oct 2007 09:51:55 +0000 (09:51 +0000)]
remove not necessary linux 2.4 Makefiles, isp stops support 2.4
update copyrights (GPLv3 avoidance)

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

14 years agoupdate installation instructions
swgruszka [Tue, 23 Oct 2007 09:26:21 +0000 (09:26 +0000)]
update installation instructions

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

14 years agosynchronize with feral cvs repository
swgruszka [Tue, 23 Oct 2007 08:57:16 +0000 (08:57 +0000)]
synchronize with feral cvs repository

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

14 years ago - Fixed BUG() with put_page_callback patch for network hardware without TX offload
vlnb [Thu, 18 Oct 2007 10:12:34 +0000 (10:12 +0000)]
 - Fixed BUG() with put_page_callback patch for network hardware without TX offload
 - Fixed 2 corner cases crashes with disabled pass-through devices
 - Docs updated

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

14 years ago - Fixes 2 shutdown problems
vlnb [Tue, 2 Oct 2007 15:04:04 +0000 (15:04 +0000)]
 - Fixes 2 shutdown problems
 - Cosmetics

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

14 years agoFixes possible double release
vlnb [Mon, 1 Oct 2007 08:10:31 +0000 (08:10 +0000)]
Fixes possible double release

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

14 years ago - Fixed closing connection related race
vlnb [Fri, 28 Sep 2007 13:58:27 +0000 (13:58 +0000)]
 - Fixed closing connection related race
 - Minor cleanups

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

14 years ago - Put_page patches remaned to correspond with the full kernel versions, for which...
vlnb [Fri, 28 Sep 2007 13:57:06 +0000 (13:57 +0000)]
 - Put_page patches remaned to correspond with the full kernel versions, for which they were created
 - Minor cleanups

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

14 years ago - Increased INCOMING_MAX as suggested in http://blog.wpkg.org/2007/09/09/solving...
vlnb [Tue, 25 Sep 2007 13:39:25 +0000 (13:39 +0000)]
 - Increased INCOMING_MAX as suggested in blog.wpkg.org/2007/09/09/solving-reliability-and-scalability-problems-with-iscsi/.
 - Minor Makefile fixes

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

14 years ago - Fixes memory leaks in scst_user spotted by new SGV cache backend
vlnb [Tue, 25 Sep 2007 09:52:53 +0000 (09:52 +0000)]
 - Fixes memory leaks in scst_user spotted by new SGV cache backend
 - Version changed on -pre3
 - Minor fixes and cosmetics

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

14 years ago - Fixes commands leak in case of, e.g., QUEUE FULL status returned, because of unini...
vlnb [Tue, 25 Sep 2007 09:46:36 +0000 (09:46 +0000)]
 - Fixes commands leak in case of, e.g., QUEUE FULL status returned, because of uninitialised cmd->sn.
 - HEAD OF QUEUE commands processing simplified to fix known problems
 - Cosmetics

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

14 years ago - Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl> with some cosmetics: fixes...
vlnb [Tue, 25 Sep 2007 09:39:04 +0000 (09:39 +0000)]
 - Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl> with some cosmetics: fixes sometimes incorrect active_pages_total accounting

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

14 years ago - Fixes wrong IRQ-safe/IRQ-unsafe locking dependancy spotted by lockdep: scst_check_...
vlnb [Tue, 25 Sep 2007 09:36:27 +0000 (09:36 +0000)]
 - Fixes wrong IRQ-safe/IRQ-unsafe locking dependancy spotted by lockdep: scst_check_local_events() must not be called with IRQs disabled
 - Cosmetics

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

14 years agoDebug mode switch scripts made executable
vlnb [Tue, 25 Sep 2007 09:34:37 +0000 (09:34 +0000)]
Debug mode switch scripts made executable

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

14 years ago - Docs updated
vlnb [Tue, 25 Sep 2007 09:30:12 +0000 (09:30 +0000)]
 - Docs updated
 - Switches debug<->performance<->release builds added
 - Cosmetics

A    trunk/usr-full_perf.patch
M    trunk/iscsi-scst/README
A    trunk/iscsi-full_perf.patch
A    trunk/debug2perf
A    trunk/perf2debug
A    trunk/usr-release.patch
A    trunk/qla2x00t-full_perf.patch
A    trunk/iscsi-release.patch
A    trunk/scst-full_perf.patch
A    trunk/qla2x00t-release.patch
A    trunk/scst-release.patch
A    trunk/README
A    trunk/usr/fileio/README
A    trunk/debug2release
A    trunk/release2debug
M    trunk/scst/src/scst_lib.c
M    trunk/scst/src/scst_mem.c
M    trunk/scst/README
M    trunk/Makefile

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

14 years ago - Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl>: fixes possible active_pages...
vlnb [Tue, 25 Sep 2007 09:20:30 +0000 (09:20 +0000)]
 - Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl>: fixes possible active_pages_total corruption in scst_free() if use_clustering was enabled in scst_alloc().
 - Now scst_alloc() always doesn't use clustering.

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

14 years ago - Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl> with cosmetic cleanups by...
vlnb [Tue, 25 Sep 2007 09:17:16 +0000 (09:17 +0000)]
 - Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl> with cosmetic cleanups by me. It implements new SGV cache low memory management backend with memory flow control facility
 - Version changed to -pre3

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

14 years ago - Patch from Krzysztof Blaszkowski: move SGV cache /proc support in the scst_mem.c
vlnb [Tue, 25 Sep 2007 09:11:08 +0000 (09:11 +0000)]
 - Patch from Krzysztof Blaszkowski: move SGV cache /proc support in the scst_mem.c
 - Minor doc fix

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

14 years agoFix from Jianxi Chen <pacers@users.sourceforge.net>, which fixes problem with devices...
vlnb [Mon, 24 Sep 2007 16:07:04 +0000 (16:07 +0000)]
Fix from Jianxi Chen <pacers@users.sourceforge.net>, which fixes problem with devices >2TB in size

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

14 years ago - Patch from Aravind Parchuri <aravind.parchuri@gmail.com> with some my modifications:
vlnb [Wed, 19 Sep 2007 09:19:29 +0000 (09:19 +0000)]
 - Patch from Aravind Parchuri <aravind.parchuri@gmail.com> with some my modifications:
   * Allows LSI MPT target driver to compile on kernels >2.6.15
   * Changes the way how gettid() syscall gate implemented
 - Small doc update

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

14 years agoIn cases when we load driver and initiator send some events like LIP, we may
swgruszka [Tue, 18 Sep 2007 06:21:41 +0000 (06:21 +0000)]
In cases when we load driver and initiator send some events like LIP, we may
not be ready to ack event and finally there is oops in interrupt. Fix this.

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

14 years agoRequest irq after pci initialization is finished.
swgruszka [Wed, 12 Sep 2007 14:11:45 +0000 (14:11 +0000)]
Request irq after pci initialization is finished.

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

14 years agoMap properly task management function codes from low level driver to scst.
swgruszka [Mon, 10 Sep 2007 10:09:30 +0000 (10:09 +0000)]
Map properly task management function codes from low level driver to scst.

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

14 years ago- Allow for empty groups (groups with no users) for iSCSI.
mgandalf [Fri, 7 Sep 2007 19:48:20 +0000 (19:48 +0000)]
- Allow for empty groups (groups with no users) for iSCSI.

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

14 years ago- Fix really stupid mistake where config commits were using same path
mgandalf [Fri, 7 Sep 2007 19:04:51 +0000 (19:04 +0000)]
- 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: https://scst.svn.sourceforge.net/svnroot/scst/trunk@184 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- Do not print lot of info about notify event.
swgruszka [Wed, 5 Sep 2007 11:38:19 +0000 (11:38 +0000)]
- Do not print lot of info about notify event.
- Check bp->scst_tgt agains NULL only once when command is processed

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

14 years ago- Search bus only once when process scsi command (tmd).
swgruszka [Wed, 5 Sep 2007 10:20:44 +0000 (10:20 +0000)]
- Search bus only once when process scsi command (tmd).
- Pass to SCST port WWN as registration name.
- Avoid race condition when we receive new tmd and bp->scst_tmd
  may (or not) be NULL.

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

14 years agoInitialize with zeros fresh allocated ini_t.
swgruszka [Tue, 4 Sep 2007 11:07:50 +0000 (11:07 +0000)]
Initialize with zeros fresh allocated ini_t.
Free low level driver memory on error.

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

14 years agoBugfix, do not zero resource which someone may actually use.
swgruszka [Sat, 1 Sep 2007 11:44:37 +0000 (11:44 +0000)]
Bugfix, do not zero resource which someone may actually use.

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

14 years agoAvoid race conditions related with registration and unregistration hba's.
swgruszka [Fri, 31 Aug 2007 13:01:22 +0000 (13:01 +0000)]
Avoid race conditions related with registration and unregistration hba's.

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

14 years agoGet irq number from PCI subsystem after irq routing mechanism (like ACPI)
swgruszka [Fri, 31 Aug 2007 09:40:17 +0000 (09:40 +0000)]
Get irq number from PCI subsystem after irq routing mechanism (like ACPI)
set it up. Otherwise we get irq number from legacy BIOS range and proper irq
(other number from PCI range) is not handled or handled by other driver -
- VERY VERY BAD THINGS happen then.

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

14 years agoAdd workaround for devices which have broken autosense mode. It is compile
swgruszka [Fri, 31 Aug 2007 09:28:08 +0000 (09:28 +0000)]
Add workaround for devices which have broken autosense mode. It is compile
time selectable. In run-time it is turned on only for 24xx chipsets. With
this workaround (hopply) we don't need to limit queue length (see comment
in patch).

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

14 years agoFixed incorrect #if statement. Reported by jzh800mail@126.com.
vlnb [Wed, 29 Aug 2007 16:16:30 +0000 (16:16 +0000)]
Fixed incorrect #if statement. Reported by jzh800mail@126.com.

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

14 years ago - Fixed make headers_check problem, reported by Doug Dumitru <doug@easyco.com>
vlnb [Wed, 29 Aug 2007 15:07:40 +0000 (15:07 +0000)]
 - Fixed make headers_check problem, reported by Doug Dumitru <doug@easyco.com>
 - Improved rebuilt warning as suggested by Tomasz Chmielewski <mangoo@wpkg.org>
 - Minor cleanups

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

14 years agoMinor changes based on comments from Tomasz Chmielewski <mangoo@wpkg.org>, Benjamin...
vlnb [Wed, 29 Aug 2007 09:52:07 +0000 (09:52 +0000)]
Minor changes based on comments from Tomasz Chmielewski <mangoo@wpkg.org>, Benjamin Yates <benjamin@rqdq.com> and Andy <AndrewL733@aol.com>

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

14 years ago - Fixed several iSCSI RFC violations in TM area, added necessary support in the...
vlnb [Tue, 28 Aug 2007 17:32:31 +0000 (17:32 +0000)]
 - Fixed several iSCSI RFC violations in TM area, added necessary support in the SCST core
 - Some minor TM handling improvements
 - Some cleanups

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

14 years agoscst_fileio renamed to scst_vdisk
vlnb [Mon, 27 Aug 2007 10:49:04 +0000 (10:49 +0000)]
scst_fileio renamed to scst_vdisk

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

14 years agoSample scstadmin .conf added
vlnb [Mon, 27 Aug 2007 10:01:48 +0000 (10:01 +0000)]
Sample scstadmin .conf added

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

14 years ago - Calling pre_exec() moved to the separate state
vlnb [Fri, 24 Aug 2007 16:54:19 +0000 (16:54 +0000)]
 - Calling pre_exec() moved to the separate state
 - Minor cleanups

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

14 years agoscsi_tgt renamed to scst
vlnb [Fri, 24 Aug 2007 16:40:56 +0000 (16:40 +0000)]
scsi_tgt renamed to scst

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

14 years agoFixed compilation problem when any module using net_get_page()/net_put_page() built...
vlnb [Thu, 23 Aug 2007 16:00:57 +0000 (16:00 +0000)]
Fixed compilation problem when any module using net_get_page()/net_put_page() built as a module.

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

14 years ago - Updated to the latest IET (r137)
vlnb [Thu, 23 Aug 2007 15:29:44 +0000 (15:29 +0000)]
 - Updated to the latest IET (r137)
 - ToDo note added

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

14 years agoCopyrights updated
vlnb [Thu, 23 Aug 2007 15:28:18 +0000 (15:28 +0000)]
Copyrights updated

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

14 years ago"iSCSI Enterprise" ranamed to "iSCSI-SCST"
vlnb [Thu, 16 Aug 2007 09:19:34 +0000 (09:19 +0000)]
"iSCSI Enterprise" ranamed to "iSCSI-SCST"

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

14 years agoscsi_tgt.ko renamed to scst.ko
vlnb [Thu, 16 Aug 2007 09:04:05 +0000 (09:04 +0000)]
scsi_tgt.ko renamed to scst.ko

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

14 years agoISCSI-SCST updates
vlnb [Wed, 15 Aug 2007 09:59:46 +0000 (09:59 +0000)]
ISCSI-SCST updates

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

14 years agoThe initial commit of iSCSI-SCST
vlnb [Wed, 15 Aug 2007 09:28:54 +0000 (09:28 +0000)]
The initial commit of iSCSI-SCST

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

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