mirror/scst/.git
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

15 years ago - Minor cleanup
vlnb [Fri, 15 Dec 2006 11:45:24 +0000 (11:45 +0000)]
 - Minor cleanup
 - Corrected definition PERSISTENT_RESERV_IN and PERSISTENT_RESERV_OUT

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

15 years agoUpdate to work on 2.6.19. Mostly done by Ming Zhang.
vlnb [Thu, 14 Dec 2006 18:10:39 +0000 (18:10 +0000)]
Update to work on 2.6.19. Mostly done by Ming Zhang.

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

15 years ago - First step to SCSI_ID support
vlnb [Thu, 14 Dec 2006 17:53:01 +0000 (17:53 +0000)]
 - First step to SCSI_ID support
 - Set correct response data length for emulated commands.
Mostly done by Ming Zhang.

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

15 years agoInternal threads management reimplemented based on kthread*() API. Mostly done by...
vlnb [Thu, 14 Dec 2006 17:50:57 +0000 (17:50 +0000)]
Internal threads management reimplemented based on kthread*() API. Mostly done by Ming Zhang.

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

15 years ago/proc implementation moved to seq_*() library. Mostly done by Ming Zhang.
vlnb [Thu, 14 Dec 2006 17:08:46 +0000 (17:08 +0000)]
/proc implementation moved to seq_*() library. Mostly done by Ming Zhang.

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

15 years agoVarious changes and fixes
vlnb [Thu, 14 Dec 2006 16:22:29 +0000 (16:22 +0000)]
Various changes and fixes

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

15 years agoReorganized getting CDB info (scst_get_cdb_info()) to make it more
vlnb [Thu, 14 Dec 2006 15:52:16 +0000 (15:52 +0000)]
Reorganized getting CDB info (scst_get_cdb_info()) to make it more
peformance effective. Mostly done by Ming Zhang.

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

15 years ago - Switch kmem_cache_alloc() -> kmem_cache_zalloc()
vlnb [Thu, 14 Dec 2006 15:42:11 +0000 (15:42 +0000)]
 - Switch kmem_cache_alloc() -> kmem_cache_zalloc()
 - Minor changes

M    trunk/qla2x00t/qla2x00-target/qla2x00t.h
M    trunk/qla2x00t/qla2x00-target/qla2x00t.c
M    trunk/scst/src/scst_lib.c
M    trunk/Makefile

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

15 years agoKernel version specified
vlnb [Thu, 14 Dec 2006 10:13:51 +0000 (10:13 +0000)]
Kernel version specified

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

15 years agoUpdates
vlnb [Wed, 13 Dec 2006 18:12:44 +0000 (18:12 +0000)]
Updates

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

15 years agoBuilding from the Linux kernel tree added
vlnb [Wed, 13 Dec 2006 12:16:11 +0000 (12:16 +0000)]
Building from the Linux kernel tree added

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

15 years agoMinor cleanup
vlnb [Wed, 13 Dec 2006 11:51:41 +0000 (11:51 +0000)]
Minor cleanup

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

15 years agoLSI/MPT target driver added
vlnb [Wed, 13 Dec 2006 11:42:59 +0000 (11:42 +0000)]
LSI/MPT target driver added

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

15 years agoMinor update
vlnb [Wed, 13 Dec 2006 11:32:36 +0000 (11:32 +0000)]
Minor update

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

15 years agoMinor cleanup
vlnb [Wed, 13 Dec 2006 11:26:23 +0000 (11:26 +0000)]
Minor cleanup

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

15 years agoSuggested changes to support CPU cache flushing before doing DMA to target devices.
vlnb [Tue, 12 Dec 2006 11:20:19 +0000 (11:20 +0000)]
Suggested changes to support CPU cache flushing before doing DMA to target devices.

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

15 years agoTake 2 of fixing the race, which could lead to BUG() in scst_mgmt_thread()
vlnb [Tue, 12 Dec 2006 09:18:04 +0000 (09:18 +0000)]
Take 2 of fixing the race, which could lead to BUG() in scst_mgmt_thread()

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

15 years ago - Fixed a race, which could lead to BUG() in scst_mgmt_thread()
vlnb [Tue, 5 Dec 2006 10:22:53 +0000 (10:22 +0000)]
 - Fixed a race, which could lead to BUG() in scst_mgmt_thread()
 - Credits updated

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

15 years agoErik Habbinga <erikhabbinga@inphase-tech.com>
vlnb [Mon, 4 Dec 2006 11:08:18 +0000 (11:08 +0000)]
Erik Habbinga <erikhabbinga@inphase-tech.com>

I've seen a case where TRACE_BUFFER is called with a NULL buffer pointer.  This patch adds a check to debug_print_buffer in
scst_debug.c to avoid dereferencing any incoming NULL pointers.

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

15 years agoFrom Erik Habbinga <erikhabbinga@inphase-tech.com>
vlnb [Mon, 4 Dec 2006 11:04:28 +0000 (11:04 +0000)]
From Erik Habbinga <erikhabbinga@inphase-tech.com>

This patch addes include/vmalloc.h to scst_fileio.c to avoid "implied function" compiler warnings for vmalloc and vfree.

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

15 years agoFrom Erik Habbinga <erikhabbinga@inphase-tech.com>
vlnb [Mon, 4 Dec 2006 11:02:50 +0000 (11:02 +0000)]
From Erik Habbinga <erikhabbinga@inphase-tech.com>

This patch initializes the res variable in the scst_proc_update_size and fileio_proc_update_size to get rid of "variable might be used unintialized" compiler warnings.

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

15 years agoFrom Erik Habbinga <erikhabbinga@inphase-tech.com>
vlnb [Mon, 4 Dec 2006 10:59:26 +0000 (10:59 +0000)]
From Erik Habbinga <erikhabbinga@inphase-tech.com>

This patch allows SCST to compile on a PPC/powerpc platform.  PPC already has strcasecmp and strncasecmp defined in
include/asm-powerpc/string.h.  The patch takes strcasecmp/strncasecmp out of scst_proc.c

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

15 years agoUpdated version to 0.9.6 and Makefiles to bring the debug options back
vlnb [Mon, 4 Dec 2006 10:53:25 +0000 (10:53 +0000)]
Updated version to 0.9.6 and Makefiles to bring the debug options back

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

15 years agoRelease 0.9.5 of both SCST and Qlogic target driver
vlnb [Fri, 1 Dec 2006 19:01:35 +0000 (19:01 +0000)]
Release 0.9.5 of both SCST and Qlogic target driver

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

15 years agoA bunch of small fixes and cleanups before 0.9.5
vlnb [Thu, 30 Nov 2006 16:44:59 +0000 (16:44 +0000)]
A bunch of small fixes and cleanups before 0.9.5

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

15 years agoA bunch of small fixes and cleanups before 0.9.5
vlnb [Thu, 30 Nov 2006 16:24:09 +0000 (16:24 +0000)]
A bunch of small fixes and cleanups before 0.9.5

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

15 years agoA small patch to fix command "Send cue sheet" transfer length.
vlnb [Wed, 15 Nov 2006 12:13:57 +0000 (12:13 +0000)]
A small patch to fix command "Send cue sheet" transfer length.
In mmc5, it is from cdb 6-8.

Signed-Off-By Ming Zhang

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

15 years agoIncrease sleep for init script between stop/start
mgandalf [Tue, 14 Nov 2006 18:44:47 +0000 (18:44 +0000)]
Increase sleep for init script between stop/start

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

15 years agoThe initial commit of 0.9.5-pre1 version
vlnb [Tue, 14 Nov 2006 12:56:57 +0000 (12:56 +0000)]
The initial commit of 0.9.5-pre1 version

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

15 years ago - Fixed problems with big amount of LUNs. Tested on 1500 LUNS
vlnb [Mon, 13 Nov 2006 17:14:19 +0000 (17:14 +0000)]
 - Fixed problems with big amount of LUNs. Tested on 1500 LUNS
 - Docs update

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

15 years agoDocumentaion updates
vlnb [Fri, 10 Nov 2006 12:39:12 +0000 (12:39 +0000)]
Documentaion updates

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

15 years agoPass-through mode resid handlning updated
vlnb [Thu, 9 Nov 2006 11:07:14 +0000 (11:07 +0000)]
Pass-through mode resid handlning updated

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

15 years agoDEBUG_WORK_IN_THREAD undefined
vlnb [Tue, 7 Nov 2006 10:53:35 +0000 (10:53 +0000)]
DEBUG_WORK_IN_THREAD undefined

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

15 years ago - One more iteration of scst_get_context() related fixes
vlnb [Tue, 7 Nov 2006 10:48:12 +0000 (10:48 +0000)]
 - One more iteration of scst_get_context() related fixes
 - Locking cleanup while calling dev handlers' task_mgmt_fn()
 - STRICT_SERIALIZING mode fixes
 - Cleanups

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

15 years ago - Fixed double locking regression, introduced rev20
vlnb [Fri, 3 Nov 2006 17:41:16 +0000 (17:41 +0000)]
 - Fixed double locking regression, introduced rev20
 - Small docs update

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

15 years agoServing commands, whose expected data len is less, than maximum, fixed. Particularly...
vlnb [Thu, 2 Nov 2006 12:10:53 +0000 (12:10 +0000)]
Serving commands, whose expected data len is less, than maximum, fixed. Particularly, it affected READ CAPACITY(16) from Linux initiators

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

15 years agoMinor cleanup
vlnb [Thu, 2 Nov 2006 12:08:28 +0000 (12:08 +0000)]
Minor cleanup

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

15 years agoShowing block size added to /proc/scsi_tgt/disk_fileio/disk_fileio
vlnb [Thu, 2 Nov 2006 12:03:39 +0000 (12:03 +0000)]
Showing block size added to /proc/scsi_tgt/disk_fileio/disk_fileio

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

15 years agoTRACE_MEM() cleanups
vlnb [Thu, 2 Nov 2006 11:20:46 +0000 (11:20 +0000)]
TRACE_MEM() cleanups

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