Commit Graph
1443 Commits
Author SHA1 Message Date
Vladislav Bolkhovitin 68f4ab3fad Set bufflen for not expected transfer len case to max to allow, e.g., to get immediate iSCSI data. Otherwise, the iSCSI target will get a too low buffer error and have to close connection.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1548 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-17 17:40:17 +00:00
Vladislav Bolkhovitin 276a5659a9 Patch from Alexey Obitotskiy <alexeyo1@open-e.com> (with changes) implementing support limiting number of sessions for a target (MaxSessions)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1547 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-17 14:03:41 +00:00
Vladislav Bolkhovitin dc3f4265c9 Key mark for explicit confirmations added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1546 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-17 12:56:35 +00:00
Vladislav Bolkhovitin 95bdae04a4 Minor docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1545 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-17 12:48:21 +00:00
Vladislav Bolkhovitin 063b1f9d71 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1544 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-16 18:38:13 +00:00
Bart Van Assche b05d967c8a Clarified a source code comment.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1543 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-15 19:25:29 +00:00
Vladislav Bolkhovitin ab5da422b8 - SysfsRules file added
- Other docs updated
 - ini_group renamed to ini_groups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1542 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-13 11:59:24 +00:00
Vladislav Bolkhovitin 2dd3f7676b Small docs updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1541 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-10 17:57:39 +00:00
Vladislav Bolkhovitin 129bf5e431 - Limit devices names to avoid confusions with truncated names
- For sysfs build remove scst_vdisk_ID module parameter and introduce setup_id sysfs attribute with the same goal
 - Minor fixes



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1540 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-10 12:51:04 +00:00
Vladislav Bolkhovitin 17db798a36 Make enable_target() interface more clear
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1539 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-10 11:56:15 +00:00
Vladislav Bolkhovitin 256b25cc0f - Dev handler sysfs interface changed to match new unified rules
- Docs updated
 - Other minor fixes, improvements and cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1538 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-09 19:36:48 +00:00
Vladislav Bolkhovitin 157a65737c Remove accidental double cmnd_exec_logout() call noticed by Alexey Obitotskiy <alexeyo1@open-e.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1537 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-09 11:21:27 +00:00
Vladislav Bolkhovitin b9d4a45cca This patch allows for SCST_USER_PARSE to return status and abort commands execution on the parse stage.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1536 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-09 11:13:50 +00:00
Vladislav Bolkhovitin 528414e67f Patch from Alexey Obitotskiy <alexeyo1@open-e.com> implementing EUI-64 identifier for 0x83 VPD page
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1535 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-05 17:53:27 +00:00
Vladislav Bolkhovitin 82ef8e1ee1 Forgotted piece of noop -> nop rename
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1534 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-05 13:09:30 +00:00
Vladislav Bolkhovitin 88e5601df0 Deeply reworked patch from Alexey Obitotskiy <alexeyo1@open-e.com> implementing support for sending NOP-In requests
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1533 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-05 12:56:20 +00:00
Bart Van Assche e56b672502 Updated error messages -- req_lim < 0 is not an internal error but can be caused by a buggy initiator.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1532 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-03 19:36:05 +00:00
Bart Van Assche a32e120e21 Added missing space in an error message.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1531 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-03 19:29:37 +00:00
Vladislav Bolkhovitin 2651efc87e If a device set read-only in a security group, it should also be reported in MODE SENSE
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1530 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-03 10:57:53 +00:00
Vladislav Bolkhovitin 85aa95c415 Follow up to the previous commit
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1529 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-02 17:58:44 +00:00
Vladislav Bolkhovitin eba1edba31 - Makes initial pass-through devices checks less strict. The main reason for that is because not all devices comply SCSI requirements too well.
- Workarounds in vdisk readv/writev limitation to process only limited number of entries per call



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1528 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-02 17:32:23 +00:00
Vladislav Bolkhovitin 6463e79a7c Fixes crash on very big buffers allocations reported by Matteo Tescione <matteo@rmnet.it> and others
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1527 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 19:41:14 +00:00
Joe Eykholt a041986db3 fcst: fix abort handling
Call scst_tgt_cmd_done() on aborted commands.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1526 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 18:35:36 +00:00
Bart Van Assche 5dc06c26de scripts/run-regression-tests works now for the 2.6.33 kernel too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1525 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 17:32:38 +00:00
Vladislav Bolkhovitin 9c02ed26c7 Update for 2.6.33
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1524 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 15:56:31 +00:00
Vladislav Bolkhovitin 5f973827df Patch from Alexey Obitotskiy <alexeyo1@open-e.com> with cleanups and fixes implementing setting and managing relative target IDs.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1523 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 13:38:06 +00:00
Joe Eykholt 5d2da8b297 fcst: set max_hw_pending_time
The target template max_hw_pending_time was zero, causing
premature timeouts and a fast retry in scst_hw_pending_work_fn().
    
Set it to 20 seconds, like qla2x00t does, for now.
It could be the wrong thing for tape, but should be
plenty long enough for disks.
    
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1522 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 18:23:23 +00:00
Vladislav Bolkhovitin 0c0a734968 A set of startup scripts for Gentoo customized by Scott R. Bowe <scottb@sentania.net>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1521 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 14:14:23 +00:00
Vladislav Bolkhovitin 713410951b Minor fixes and cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1520 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 13:37:56 +00:00
Vladislav Bolkhovitin 968f9aa146 Property svn:ignore set
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1519 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 11:33:24 +00:00
Bart Van Assche 93e5dcab3c Removed trailing whitespace because checkpatch complained about it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1518 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-21 19:30:39 +00:00
Bart Van Assche d50a02767d Added fcst code in generate-kernel-patch output.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1517 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-21 09:00:20 +00:00
Vladislav Bolkhovitin f1ee68d35d Web updates and fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1516 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-20 20:35:28 +00:00
Vladislav Bolkhovitin 08161076f8 - New main Makefile target fcst added
- Preliminary fixes to compile on 2.6.33



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1515 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-20 20:08:10 +00:00
Vladislav Bolkhovitin 6023f1ad34 This patch adds a new target module for SCST and libfc
that accepts FCP requests from libfc HBAs running Fibre Channel
over Ethernet (FCoE) and passes them to SCST.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1514 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-20 20:02:02 +00:00
Vladislav Bolkhovitin 21140e2a07 Fixed incorrect condition in scst_hw_pending_work_fn() noticed by Joe Eykholt <jeykholt@cisco.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1513 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-19 18:45:53 +00:00
Bart Van Assche 2d4d49f304 Fixed two WARN_ON() statements.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1512 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-19 12:03:48 +00:00
Vladislav Bolkhovitin 4d96089e50 Sysfs interface for targets made uniform. ISCSI-SCST made confirming the uniformity requirements. See README for details.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1511 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-17 19:07:54 +00:00
Bart Van Assche 9b82ea19be Works now when started with a relative path too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1510 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-15 19:09:48 +00:00
Bart Van Assche 9c8f290140 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1509 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-15 17:34:22 +00:00
Bart Van Assche c519012fb2 Factored out channel unregistration code into a new function srpt_unregister_channel().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1508 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-14 12:51:14 +00:00
Bart Van Assche 4f7e597345 Fixed a memory leak in an error path.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1507 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-14 12:11:54 +00:00
Bart Van Assche 40869e57d1 Moved srpt_unmap_sg_to_ib_sge(ch, ioctx) call back into srpt_abort_scst_cmd().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1506 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-14 12:08:47 +00:00
Bart Van Assche add3508a0c Changes:
- Fixed race condition between SCST session registration and IB channel event
  handler in srpt_add_one(): at least in theory it was possible that 
  sdev->scst_tgt was accessed before being initialized properly.
- A kernel WARN_ON() is no longer triggered when a DREQ has been received after
  SCST session deregistration started.
- Made sure that srpt_unmap_sg_to_ib_sge() does not call ib_dma_unmap_sg()
  twice.
- Moved srpt_unmap_sg_to_ib_sge() call out of srpt_reset_ioctx() and
  srpt_abort_scst_cmd() into the callers of these functions.
- Renamed some of the SRPT command states.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1505 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-14 11:36:34 +00:00
Bart Van Assche cedf31579e Removed handling of AESOLNT, CRSOLNT and LOSOLNT flags again.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1504 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 19:42:00 +00:00
Bart Van Assche 26866a1e28 Simplified implementation of the thread=1 mode.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1503 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 19:37:43 +00:00
Bart Van Assche 8981044fb8 Updated test instructions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1502 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 19:30:08 +00:00
Bart Van Assche 7eee1392b8 Compiles again without warnings.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1501 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 18:59:15 +00:00
Vladislav Bolkhovitin 82e07ddb73 Commented out required by iSCSI RFC, but not needed for processing, check of LUN field in Data-Out PDU, because some initiators (Windows, at least) don't care to correctly set it.
Reported and tested by Ladislav Pašek <pasek@valbek.cz>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1500 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 13:12:58 +00:00
Vladislav Bolkhovitin 8a4b3a1732 Those files were deleted moving to new pass-through implementation, but should have been resurrected when that implementation was limited to 2.6.30+ kernels only. Fixing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1499 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 13:07:23 +00:00