Commit Graph

128 Commits

Author SHA1 Message Date
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
Vladislav Bolkhovitin
0733627b2c Fixed depmod to work for the necessary kernel, not the current one
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-03 14:49:33 +00:00
Vladislav Bolkhovitin
3c1cf6c033 Parse() functions made generic
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-03 14:47:47 +00:00
Vladislav Bolkhovitin
3b449d4705 Copyrights updated, "-g" added in DEBUG mode
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-03 14:42:47 +00:00
Vladislav Bolkhovitin
d88d3897b5 Minor fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-04-02 10:55:55 +00:00
Vladislav Bolkhovitin
b61ab2848d - D_SENSE value corrected
- REPORT DENSITY SUPPORT command added


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@102 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-03-07 17:10:45 +00:00
Vladislav Bolkhovitin
8e69f4349a - BLOCKIO made async
- Docs updates

- Debug logging improvements


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-03-02 16:29:36 +00:00
Vladislav Bolkhovitin
5b4909133d Fixed case, when resid == cmd->resp_data_len for real devices
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-03-02 15:06:55 +00:00
Vladislav Bolkhovitin
e94515231d 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: http://svn.code.sf.net/p/scst/svn/trunk@99 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-28 12:55:35 +00:00
Vladislav Bolkhovitin
6e1cb95cce Minor cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@98 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-22 11:53:35 +00:00
Vladislav Bolkhovitin
873d818cb8 BLOCKIO doc updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@97 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-22 10:54:32 +00:00
Vladislav Bolkhovitin
b4faadac03 Minor fixes from/inspired by Vu Pham
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@96 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-22 10:34:18 +00:00
Vladislav Bolkhovitin
d175ce127d 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: http://svn.code.sf.net/p/scst/svn/trunk@95 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-21 18:15:19 +00:00
Vladislav Bolkhovitin
683431eb89 Rename FILEIO -> VDISK, part 2
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@94 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-21 16:44:59 +00:00
Vladislav Bolkhovitin
0faa1e3de3 Rename FILEIO -> VDISK, part 1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@93 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-21 15:48:58 +00:00
Vladislav Bolkhovitin
8af49e310d Version 0.4.
- Support for partial data transfers added

 - Support asynchronous commands completions added

 - Few important notes added



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@92 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-21 15:09:25 +00:00
Vladislav Bolkhovitin
b3aaaed00d Execution context cleanup. Completed full support for SCSI task attributes (SIMPLE, ORDERED, etc.)
+ minor cleanups


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@91 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-21 12:50:48 +00:00
Vladislav Bolkhovitin
e5c4ac05f6 A major locking and general code cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@90 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-21 11:43:22 +00:00
Vladislav Bolkhovitin
76b6ad80ff Oops, the previous commit was wrong. Fix it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@89 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-19 12:55:54 +00:00
Vladislav Bolkhovitin
48bf0d2bf7 Minor fix for ABORTed on SIRQ commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@88 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-19 10:46:53 +00:00
Vladislav Bolkhovitin
0c0c6850ac Update to work on 2.6.20 + minor fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@87 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-16 11:11:18 +00:00
Vladislav Bolkhovitin
d2536357bc 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: http://svn.code.sf.net/p/scst/svn/trunk@86 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-02-02 12:26:50 +00:00
Vladislav Bolkhovitin
d8bd3482e1 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: http://svn.code.sf.net/p/scst/svn/trunk@85 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-01-24 13:31:00 +00:00
Vladislav Bolkhovitin
a0867f49fc 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: http://svn.code.sf.net/p/scst/svn/trunk@84 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-01-24 13:17:20 +00:00
Vladislav Bolkhovitin
c8a47b0753 Bugfix for Fedora 6 kernel where GFP_ATOMIC constant is redefined, which lead to massive commands data
buffers memory allocations failures.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@83 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-01-22 10:38:18 +00:00
Vladislav Bolkhovitin
cebd38b37e - 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: http://svn.code.sf.net/p/scst/svn/trunk@82 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-01-18 11:30:05 +00:00
Vladislav Bolkhovitin
a2d3812550 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: http://svn.code.sf.net/p/scst/svn/trunk@81 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-01-18 10:59:48 +00:00
Vladislav Bolkhovitin
13ef297e76 Minor TM-related fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@80 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-01-17 14:47:21 +00:00
Vladislav Bolkhovitin
73a0c8b152 From Erik Habbinga: added note on REQUEST SENSE implementation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@79 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-01-16 17:51:48 +00:00