Commit Graph

2296 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
30e14c9e7c Max_sectors related error made more clear
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2725 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 12:48:21 +00:00
Vladislav Bolkhovitin
52820b5d57 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2720 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 11:40:08 +00:00
Bart Van Assche
900a70d873 ib_srpt: Made instructions in the documentation independent of the scstadmin version.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2717 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-16 19:16:48 +00:00
Vladislav Bolkhovitin
0e225ebdf4 Patch from Cheng Renquan <crquan@gmail.com>
This is needed to build qla2xxx on top of 2.6.26 and
2.6.27 Linux kernels according this scst-devel mailing list thread,
http://sourceforge.net/mailarchive/message.php?msg_name=1288289831-23405-1-git-send-email-crquan@gmail.com



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-16 18:41:28 +00:00
Mark Buechler
988147c48b - Apply target attributes before assigning LUNs.
- Always enable/disable targets and drivers last.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2710 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-15 15:55:39 +00:00
Bart Van Assche
e66128f414 Added yet another pattern to the preprocessor statement partial evaluation engine.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 16:16:15 +00:00
Bart Van Assche
b28125eb9e Fixed more spelling errors in source code comments and logging statements.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2708 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 16:02:55 +00:00
Bart Van Assche
662197f200 ibmvstgt: Made sure that accessing sysfs entries during target creation is harmless.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 09:32:32 +00:00
Bart Van Assche
83a967d3a3 ib_srpt: Made sure that accessing sysfs entries during target creation is harmless.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2703 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 09:32:03 +00:00
Bart Van Assche
a46907c720 Fixed a typo in source code comments: attepts -> attempts.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2702 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 08:29:00 +00:00
Mark Buechler
3705114629 - Return 0 from applyConfiguration() so scstadmin can exit 0 on success.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2698 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 03:04:45 +00:00
Bart Van Assche
6297569bce ib_srpt: Builds again on RHEL 5 (enable_proc).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2696 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 22:29:12 +00:00
Bart Van Assche
cad6ad557d Two more spelling fixes (in source code comments).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2695 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 17:35:35 +00:00
Bart Van Assche
6af52138f9 Spelling fix for a debug trace statement.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2694 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 17:33:12 +00:00
Bart Van Assche
f14f14a31e ib_srpt: Converted req_lim and req_lim_delta from device-specific attributes into session-specific attributes, which makes a lot more sense.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2692 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 17:28:18 +00:00
Vladislav Bolkhovitin
e1066553c8 The return value of scst_tgt_get_tgt_priv() in sysfs methods must be checked because at least in
theory it is possible that scst_tgt_get_tgt_priv() is invoked before
scst_register_target() returns. The patch below implements such a check and
also removes some superfluous casts.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2691 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 17:27:02 +00:00
Bart Van Assche
7025e1a732 Should have been included in r2686.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2688 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 14:58:11 +00:00
Bart Van Assche
e0ca9738d9 Yet another patch description update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2687 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 14:40:50 +00:00
Bart Van Assche
79a4dcc4e5 ib_srpt: Made sure that no credits are lost because of SCSI task abortion.
ib_srpt: Exported req_lim and req_lim_delta values via sysfs because this is convenient for debugging purposes.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2686 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 14:38:44 +00:00
Bart Van Assche
ec1c78413a More patch description updates.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2685 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 13:54:20 +00:00
Bart Van Assche
4a6d63f71a Updated patch descriptions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2684 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 12:53:29 +00:00
Bart Van Assche
2c613896b3 scst/sysfs: Added missing newline at the end of the LUN management help text.
scst/sysfs: Changed data type of mgmt help texts from 'char *' into 'static const char[]' because the latter is preferred for Linux kernel code.
scst/sysfs: Changed indentation of the variables declared in scst_tgtt_mgmt_show().

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2683 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 10:02:11 +00:00
Bart Van Assche
5412c63410 scst: fake_aca support does now work (merged revisions 2677,2680 and 2681 from the ibmvstgt-port branch).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2682 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 09:27:23 +00:00
Vladislav Bolkhovitin
283a647c5e Cosmetics: rename "tlb" to "tbl" as it should be from "table"
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2676 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-12 12:23:37 +00:00
Vladislav Bolkhovitin
fc3dec251d scst_alloc() didn't set len of the last sg entry as reported by ido benda <idombd@gmail.com> + set resid_possible for special cases of LUN NOT SUPPORTED
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2673 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 19:55:52 +00:00
Bart Van Assche
d99565f6fb ibmvstgt: Workaround to make ibmvstgt patch generation succeed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2670 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 15:10:49 +00:00
Bart Van Assche
a9663949f0 Patch generation scripts: Fixed a typo.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2669 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 14:50:37 +00:00
Bart Van Assche
a67095dc44 ibmvstgt: Minor comment change.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2668 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 14:02:11 +00:00
Bart Van Assche
64b2df03e4 ibmvstgt patch description: Separated porting changes from other changes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2667 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 13:23:30 +00:00
Bart Van Assche
b3364e18ba ibmvstgt: Patch description update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2666 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 13:17:50 +00:00
Vladislav Bolkhovitin
9ecf46038d Small optimization: there's no point to keep full kobj completion.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2665 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 13:02:00 +00:00
Bart Van Assche
57d7323e00 ibmvstgt: Updated documentation.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2664 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 12:40:57 +00:00
Bart Van Assche
8cad61c602 ibmvstgt: Elaborated documentation.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2663 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 10:48:43 +00:00
Bart Van Assche
7bdfe662e8 ibmvstgt: Fixed a checkpatch complaint about whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2662 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 09:52:37 +00:00
Bart Van Assche
1f2cedce37 Merged scripts directory from ibmvstgt-port branch (svn merge -r2369:2654 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port/scripts).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2661 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 09:26:44 +00:00
Bart Van Assche
17d6ca9cea Merged the ibmvstgt-port branch (svn merge -r2369:2654 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2660 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 09:14:32 +00:00
Vladislav Bolkhovitin
972959d11a Patch from Uri Yanai <Uri.Yanai@ngsoft.com> fixing compilation for kernels below 2.6.28
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2659 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 19:34:22 +00:00
Vladislav Bolkhovitin
1159c7fd26 in-tree-patches deleted as not needed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2657 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 19:30:13 +00:00
Vladislav Bolkhovitin
d66dcd71eb Fix minor Makefile issues
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2655 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 12:35:11 +00:00
Vladislav Bolkhovitin
0463afc282 Patch from Bart Van Assche <bvanassche@acm.org> with some changes implementing additional hooks to allow target drivers to override INQUIRY responses and support for LUNs addressing method.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2649 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 21:01:21 +00:00
Bart Van Assche
8eaff2c061 qla2x00t: Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2647 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 20:09:31 +00:00
Vladislav Bolkhovitin
ba81a8caaf Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2641 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 14:41:22 +00:00
Vladislav Bolkhovitin
a98808185f Ignore out of SN range commands as requested by iSCSI RFC.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2639 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 14:23:25 +00:00
Vladislav Bolkhovitin
e8f65b0336 Long CDBs handling fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2638 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 13:14:09 +00:00
Vladislav Bolkhovitin
c631f51530 Fixes for sessions deletion
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2637 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-08 17:08:07 +00:00
Vladislav Bolkhovitin
66cec8e76a Fix problems in marking sessions local
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2635 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-08 14:18:10 +00:00
Vladislav Bolkhovitin
1903d5e459 Local sessions management made more robust
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2634 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-08 13:21:15 +00:00
Bart Van Assche
994e8f8b08 Merged from the ibmvstgt-port branch, such that the nightly build works again.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2630 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-07 08:42:16 +00:00
Bart Van Assche
daa86ab856 ibmvstgt: PowerPC build fix (svn merge -r2369:2589 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port/ibmvstgt/src/dummy_powerpc_defs.h).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2622 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 12:41:54 +00:00
Bart Van Assche
87d0149b49 ibmvstgt: Build and install both ibmvstgt and libsrp (svn merge -r2369:2449 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port/ibmvstgt/Makefile).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2621 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 12:40:10 +00:00