Vladislav Bolkhovitin
fc5236bf09
- 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: http://svn.code.sf.net/p/scst/svn/trunk@69 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-21 11:04:34 +00:00
Vladislav Bolkhovitin
dc7b5d8684
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: http://svn.code.sf.net/p/scst/svn/trunk@68 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-20 17:53:41 +00:00
Vladislav Bolkhovitin
3eb6d67674
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: http://svn.code.sf.net/p/scst/svn/trunk@67 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-19 18:07:56 +00:00
Vladislav Bolkhovitin
b3e2455cb2
Not debug compilation fixed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@66 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-18 15:07:12 +00:00
Vladislav Bolkhovitin
59fb188c83
ChangeLog updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@65 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-15 16:49:15 +00:00
Vladislav Bolkhovitin
2348328a45
- 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: http://svn.code.sf.net/p/scst/svn/trunk@64 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-15 16:30:30 +00:00
Vladislav Bolkhovitin
c2fafc2cf2
Small cleanup to the prev. commit
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@63 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-15 16:14:04 +00:00
Vladislav Bolkhovitin
ba4f29ee54
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: http://svn.code.sf.net/p/scst/svn/trunk@62 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-15 15:59:21 +00:00
Vladislav Bolkhovitin
32c3fd4e19
- Minor cleanup
...
- Corrected definition PERSISTENT_RESERV_IN and PERSISTENT_RESERV_OUT
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@61 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-15 11:45:24 +00:00
Vladislav Bolkhovitin
0e04ac351a
Update to work on 2.6.19. Mostly done by Ming Zhang.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@60 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-14 18:10:39 +00:00
Vladislav Bolkhovitin
bf30ca2c93
- First step to SCSI_ID support
...
- Set correct response data length for emulated commands.
Mostly done by Ming Zhang.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@59 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-14 17:53:01 +00:00
Vladislav Bolkhovitin
b4e6b71a90
Internal threads management reimplemented based on kthread*() API. Mostly done by Ming Zhang.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@58 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-14 17:50:57 +00:00
Vladislav Bolkhovitin
f1e2c33ac7
/proc implementation moved to seq_*() library. Mostly done by Ming Zhang.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@57 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-14 17:08:46 +00:00
Vladislav Bolkhovitin
f375c2e756
Various changes and fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@56 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-14 16:22:29 +00:00
Vladislav Bolkhovitin
d01eacc4d2
Reorganized getting CDB info (scst_get_cdb_info()) to make it more
...
peformance effective. Mostly done by Ming Zhang.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@55 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-14 15:52:16 +00:00
Vladislav Bolkhovitin
426e0474e0
- 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: http://svn.code.sf.net/p/scst/svn/trunk@54 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-14 15:42:11 +00:00
Vladislav Bolkhovitin
b4d0d03e63
Kernel version specified
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@53 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-14 10:13:51 +00:00
Vladislav Bolkhovitin
06811bc7ab
Updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@52 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-13 18:12:44 +00:00
Vladislav Bolkhovitin
e5843199f2
Building from the Linux kernel tree added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@51 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-13 12:16:11 +00:00
Vladislav Bolkhovitin
7209d4b37f
Minor cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@50 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-13 11:51:41 +00:00
Vladislav Bolkhovitin
58c3c9893a
LSI/MPT target driver added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@49 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-13 11:42:59 +00:00
Vladislav Bolkhovitin
097d281f04
Minor update
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@48 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-13 11:32:36 +00:00
Vladislav Bolkhovitin
549b81f7cc
Minor cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@47 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-13 11:26:23 +00:00
Vladislav Bolkhovitin
ea2141e197
Suggested changes to support CPU cache flushing before doing DMA to target devices.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@46 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-12 11:20:19 +00:00
Vladislav Bolkhovitin
e63a0dcbd0
Take 2 of fixing the race, which could lead to BUG() in scst_mgmt_thread()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@45 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-12 09:18:04 +00:00
Vladislav Bolkhovitin
19061ed988
- Fixed a race, which could lead to BUG() in scst_mgmt_thread()
...
- Credits updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@44 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-05 10:22:53 +00:00
Vladislav Bolkhovitin
de3801ce0b
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: http://svn.code.sf.net/p/scst/svn/trunk@43 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-04 11:08:18 +00:00
Vladislav Bolkhovitin
70a97084f2
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: http://svn.code.sf.net/p/scst/svn/trunk@42 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-04 11:04:28 +00:00
Vladislav Bolkhovitin
22eee9b4a8
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: http://svn.code.sf.net/p/scst/svn/trunk@41 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-04 11:02:50 +00:00
Vladislav Bolkhovitin
3c0e316ce6
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: http://svn.code.sf.net/p/scst/svn/trunk@40 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-04 10:59:26 +00:00
Vladislav Bolkhovitin
22041237a9
Updated version to 0.9.6 and Makefiles to bring the debug options back
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@39 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-04 10:53:25 +00:00
Vladislav Bolkhovitin
4784c2ec6e
Release 0.9.5 of both SCST and Qlogic target driver
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@38 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-12-01 19:01:35 +00:00
Vladislav Bolkhovitin
f668acb6d5
A bunch of small fixes and cleanups before 0.9.5
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@37 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-30 16:44:59 +00:00
Vladislav Bolkhovitin
e0e00e0e8e
A bunch of small fixes and cleanups before 0.9.5
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@36 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-30 16:24:09 +00:00
Vladislav Bolkhovitin
7e8e976d2b
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: http://svn.code.sf.net/p/scst/svn/trunk@35 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-15 12:13:57 +00:00
Mark Buechler
58a08724ca
Increase sleep for init script between stop/start
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@34 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-14 18:44:47 +00:00
Vladislav Bolkhovitin
5410bf4f3b
The initial commit of 0.9.5-pre1 version
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@33 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-14 12:56:57 +00:00
Vladislav Bolkhovitin
02d31f62c0
- Fixed problems with big amount of LUNs. Tested on 1500 LUNS
...
- Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@32 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-13 17:14:19 +00:00
Vladislav Bolkhovitin
e721a3e0bd
Documentaion updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@31 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-10 12:39:12 +00:00
Vladislav Bolkhovitin
a418ec7f86
Pass-through mode resid handlning updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@30 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-09 11:07:14 +00:00
Vladislav Bolkhovitin
bfb9a2ea3c
DEBUG_WORK_IN_THREAD undefined
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@29 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-07 10:53:35 +00:00
Vladislav Bolkhovitin
bbcafc8fd9
- 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: http://svn.code.sf.net/p/scst/svn/trunk@28 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-07 10:48:12 +00:00
Vladislav Bolkhovitin
0efcd3d65f
- Fixed double locking regression, introduced rev20
...
- Small docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@27 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-03 17:41:16 +00:00
Vladislav Bolkhovitin
40d6dbbe6c
Serving commands, whose expected data len is less, than maximum, fixed. Particularly, it affected READ CAPACITY(16) from Linux initiators
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@26 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-02 12:10:53 +00:00
Vladislav Bolkhovitin
10f5c77231
Minor cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@25 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-02 12:08:28 +00:00
Vladislav Bolkhovitin
14afc65ad9
Showing block size added to /proc/scsi_tgt/disk_fileio/disk_fileio
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@24 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-02 12:03:39 +00:00
Vladislav Bolkhovitin
c843084c8d
TRACE_MEM() cleanups
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@23 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-02 11:20:46 +00:00
Vladislav Bolkhovitin
1fad8dae64
- Fixes wrongly set context in scst_tgt_cmd_done()
...
- Fixes retries for stateful devices
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@22 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-02 10:54:10 +00:00
Vladislav Bolkhovitin
64ff5ad004
Updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@21 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-02 10:43:29 +00:00
Vladislav Bolkhovitin
23261f3623
The first attempt to fix the "Unable to find wwn login for loop id 2, using loop id instead" problem
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@20 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-02 10:43:12 +00:00