Commit Graph

156 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
48effdd529 - Implemented temporary workaround to work on 2.6.22+ kernels
- qla2x00-target/ChangeLog updated
 - Typo in scst_page.html fixed


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@156 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-07 17:12:21 +00:00
Vladislav Bolkhovitin
5cdb901fea - In scst_user fixed potential deadlock
- scst_check_local_events() added
 - Minor cleanups and fixes 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@155 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-03 09:57:15 +00:00
Vladislav Bolkhovitin
10f17420b5 - Device blocking cleanups and fixes
- tags logging made unsigned 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@154 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-31 14:21:46 +00:00
Vladislav Bolkhovitin
b28d1b9905 - Semaphores converted to mutexes
- pre_exec() callback added
 - *_DBG_SPECIAL() macroses added 



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@153 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-30 11:21:04 +00:00
Vladislav Bolkhovitin
5814b4ba13 Partial update for 2.6.22
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@152 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-23 11:51:05 +00:00
Vladislav Bolkhovitin
0f286f40f5 Update for 64-bit tags
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@151 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-18 08:50:50 +00:00
Vladislav Bolkhovitin
cf596b177d 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: http://svn.code.sf.net/p/scst/svn/trunk@150 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-18 08:41:44 +00:00
Vladislav Bolkhovitin
081c39036f 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: http://svn.code.sf.net/p/scst/svn/trunk@149 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-13 15:02:20 +00:00
Vladislav Bolkhovitin
4a44c43a61 Few minor races fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@148 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-13 09:34:25 +00:00
Stanislaw Gruszka
e37c03bbd7 Little comment fix.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@147 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-11 09:30:10 +00:00
Vladislav Bolkhovitin
c7e8a55dc6 lun_t changed to 64 bits. Don't know why it was 32 bits
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-10 16:47:43 +00:00
Vladislav Bolkhovitin
7181d89244 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: http://svn.code.sf.net/p/scst/svn/trunk@145 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-10 16:39:38 +00:00
Vladislav Bolkhovitin
c3a9c36297 trace_buf_lock implemented
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@144 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-05 16:23:09 +00:00
Vladislav Bolkhovitin
f401303211 Added previously renamed (deleted) patches
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-05 14:39:37 +00:00
Vladislav Bolkhovitin
d219b55b8b - 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: http://svn.code.sf.net/p/scst/svn/trunk@142 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-05 14:37:36 +00:00
Vladislav Bolkhovitin
51e3149648 Separate block devices from non-block ones
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-05 14:20:17 +00:00
Vladislav Bolkhovitin
3ab4521950 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: http://svn.code.sf.net/p/scst/svn/trunk@140 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-02 11:36:22 +00:00
Vladislav Bolkhovitin
772e541dd6 Fix of WARN_ON_ONCE() braindamage
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@139 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-29 09:41:09 +00:00
Vladislav Bolkhovitin
2eb776e47c Patch from Alessandro Premoli fixes all the warnings of scst on 64-bit platforms
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-27 16:19:38 +00:00
Vladislav Bolkhovitin
b7004e4110 Minor debug changes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-27 10:41:44 +00:00
Vladislav Bolkhovitin
8912ae9e15 SCST page updated to list the QLogic ISP driver
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@136 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-25 17:19:35 +00:00
Vladislav Bolkhovitin
451443a6c8 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: http://svn.code.sf.net/p/scst/svn/trunk@135 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-25 16:32:46 +00:00
Mark Buechler
5a261fcdd6 - 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: http://svn.code.sf.net/p/scst/svn/trunk@134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-22 18:23:12 +00:00
Mark Buechler
8de9a09bcf - Version increment (almost forgot)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@133 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-21 17:30:34 +00:00
Mark Buechler
07517779d3 - 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: http://svn.code.sf.net/p/scst/svn/trunk@132 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-21 17:24:12 +00:00
Mark Buechler
d1a8a81d20 - Fixed closing a device with -RemoveDev
- Added BLOCKIO option support



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-20 13:45:19 +00:00
Mark Buechler
f6ba07057d - 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: http://svn.code.sf.net/p/scst/svn/trunk@130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-19 20:21:27 +00:00
Vladislav Bolkhovitin
c7748b916b - Fixed race with wake_up()
- Some cleanups


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@129 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-15 09:02:57 +00:00
Vladislav Bolkhovitin
24922d550c SVN access method changed to https://scst.svn.sourceforge.net/svnroot/scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@128 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-13 10:04:45 +00:00
Vladislav Bolkhovitin
d9b5ae3232 Minor threads related fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@127 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-08 14:08:06 +00:00
Vladislav Bolkhovitin
54710618be Added limit on maximum queued on a device commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@126 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-08 10:54:18 +00:00
Vladislav Bolkhovitin
fc854f8279 - Threads made per-device
- Minor cleanups and fixes


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-08 10:25:29 +00:00
Vladislav Bolkhovitin
2ac4d71738 Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@124 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-01 15:05:54 +00:00
Vladislav Bolkhovitin
78b0dce0c2 Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@123 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-01 11:11:19 +00:00
Vladislav Bolkhovitin
053ed51a93 Version changed to 0.9.6
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-31 17:13:27 +00:00
Vladislav Bolkhovitin
61b0176514 - 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: http://svn.code.sf.net/p/scst/svn/trunk@121 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-31 17:11:57 +00:00
Vladislav Bolkhovitin
581cb5cd4f Support for per-target default security groups added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@120 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-31 17:10:55 +00:00
Vladislav Bolkhovitin
be5205f51a Support for per-target default security groups added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@119 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-31 17:02:41 +00:00
Vladislav Bolkhovitin
1dd534e2aa Some docs updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@118 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-31 15:13:13 +00:00
Vladislav Bolkhovitin
1c5144105c Oops, "is" instead of "isn't"
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-17 15:35:45 +00:00
Vladislav Bolkhovitin
ad50c22583 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: http://svn.code.sf.net/p/scst/svn/trunk@116 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-17 15:30:02 +00:00
Vladislav Bolkhovitin
2edf177f73 Minor fixes, cleanups and updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@115 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-17 14:45:18 +00:00
Vladislav Bolkhovitin
041696cfea Internal REQUEST SENSE fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-08 09:26:48 +00:00
Vladislav Bolkhovitin
b3e8a3e270 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: http://svn.code.sf.net/p/scst/svn/trunk@113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-05-08 09:22:48 +00:00
Vladislav Bolkhovitin
b221fe690e LOG_SELECT/SENSE stub added. Looks like it is more correct way to refuse those commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@112 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-27 14:46:22 +00:00
Vladislav Bolkhovitin
8ef28e5210 - SGV caching changed to be more space efficient
- pre_unreg_sess() added to struct scst_dev_type
- Minor fixes and cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-24 16:44:23 +00:00
Vladislav Bolkhovitin
b1ab670662 Version 0.9
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-24 14:31:15 +00:00
Vladislav Bolkhovitin
0ee6a983d0 Typo fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@109 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-16 15:43:37 +00:00
Vladislav Bolkhovitin
62b075c66d Various fixes, cleanups updates and preparations
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-03 15:44:44 +00:00
Vladislav Bolkhovitin
8f692614cf dev_done() made generic, small generic parse() optimization and cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-03 14:51:18 +00:00