Vladislav Bolkhovitin
90670b1c83
scst_rx_mgmt_fn_lun(): Change 3rd arg from u8 * into void *
...
This change allows to remove several casts and hence improves
source code readability.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4169 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-03-27 01:40:45 +00:00
Bart Van Assche
968d3b17fe
nightly build: Add 3.3 support patches
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-03-24 07:12:56 +00:00
Vladislav Bolkhovitin
50120c37b3
scst_cmd_aborted() is a bad and ambiguous name. Rename it to scst_cmd_aborted_on_xmit() and create a new version, which truly reflects its semantic.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-02-24 02:24:06 +00:00
Vladislav Bolkhovitin
f2387d7956
Convert strict_strtoul() and simple_strtoul() into kstrtoul() or sscanf()
...
Recent versions of the checkpatch script complain about strict_strtoul()
and simple_strtoul(), so convert calls to these functions into a call to
kstrtoul() or sscanf(). Convert loops that scan for the
next-(non-)whitespace character into a call to scst_get_next_lexem().
Make __scst_process_luns_mgmt_store() a little more strict by checking
for extraneous parameters past the last argument. Fix the value "res"
returned for the SCST_TRACE_ACTION_VALUE processing code.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-02-18 03:01:43 +00:00
Bart Van Assche
10bcf70cc6
Add files necessary for 3.2 nightly build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-19 07:58:37 +00:00
Vladislav Bolkhovitin
7872837b6b
Replace list_entry((a)->next, b, c) by list_first_entry(a, b, c).
...
BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3965 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 03:50:24 +00:00
Bart Van Assche
baf5c259bc
regtests: Add files necessary for Linux kernel 3.1
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3929 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-17 09:24:12 +00:00
Vladislav Bolkhovitin
137fbb6779
Remove dead target
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3906 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-04 02:24:35 +00:00
Vladislav Bolkhovitin
43d576aa48
Changelogs updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3842 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 20:15:42 +00:00
Bart Van Assche
08a80a59bc
documentation, spelling: Change phisical into physical
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3825 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-20 14:04:52 +00:00
Bart Van Assche
eb24966570
scst_local: Fix a recently introduced compiler warning.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3804 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 15:51:17 +00:00
Bart Van Assche
705c3754a2
Remove superfluous double quotes from around #warning messages because checkpatch 3.0 complains about these.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3789 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-29 12:58:13 +00:00
Bart Van Assche
dbc55781d7
Add remaining Linux kernel 3.0 patches and port nightly build scripts to 3.0 too.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3783 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-27 14:05:47 +00:00
Vladislav Bolkhovitin
7096e492ba
Improve changing debug/release/etc states by making them not depending
...
from the previous state. Hence, the corresponding labels were renamed to
2debug, 2release and 2perf.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3736 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-22 23:10:08 +00:00
Vladislav Bolkhovitin
6012710767
- Let's always do extraclean on Makefiles modifications, because they can affect data layout in header files, which could not be detected by all target drivers/dev handlers makes
...
- Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3504 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 16:58:06 +00:00
Bart Van Assche
6f8d4b7288
scst_local: get rid of a checkpatch complaint for the procfs build.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3499 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 08:04:56 +00:00
Bart Van Assche
cf131e0d20
scst_local: Rearranged a preprocessor directive such that generate-kernel-patch can expand it.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3493 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 06:39:49 +00:00
Bart Van Assche
d47e60953c
scst_local/procfs bug fix: don't include <scst_const.h> before <scst.h> or
...
SCST_VERSION_STRING will be incorrect because it gets defined before
CONFIG_SCST_PROC is defined.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3490 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-28 11:00:35 +00:00
Bart Van Assche
4c4beaa0cd
scst_local/procfs bug fix: don't include <scst_const.h> before <scst.h> or
...
SCST_VERSION_STRING will be incorrect because it gets defined before
CONFIG_SCST_PROC is defined.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3489 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-28 10:59:27 +00:00
Bart Van Assche
85bcb19a36
Added remaining files necessary for supporting 2.6.39 (these are copies of the 2.6.38 equivalents).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3465 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 16:38:57 +00:00
Bart Van Assche
019489a774
Made it possible for generate-kernel-patch to evaluate all LINUX_VERSION_CODE statements.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3464 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 11:13:07 +00:00
Vladislav Bolkhovitin
b5a41deb28
Update for 2.6.39
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 00:52:34 +00:00
Vladislav Bolkhovitin
0f11a6139f
Let's make build state changes errors more clear
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-11 01:56:38 +00:00
Vladislav Bolkhovitin
4539005d7c
Patch from Alexey Obitotskiy <alexeyo1@open-e.com> making get_initiator_port_transport_id() more flexible
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-29 14:30:01 +00:00
Bart Van Assche
d00afd73f4
Added remaining files necessary for 2.6.38 nightly build support.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3304 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-24 11:55:23 +00:00
Vladislav Bolkhovitin
f518cd150c
Let's remove *.orig and *.rej files on extraclean
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3277 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-10 20:07:23 +00:00
Vladislav Bolkhovitin
d38930733e
Cleanup of unused out_sess.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3243 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-31 23:17:23 +00:00
Vladislav Bolkhovitin
f15f2cdd5f
- Making scst_local be safe with BLOCKIO and pass-through.
...
- Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3205 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-11 13:39:27 +00:00
Vladislav Bolkhovitin
411fb4f623
- Update for 2.6.37
...
- Docs updated
- Returning of DIRECT contexts by scst_estimate_context() disabled (see comment in the patch why)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-10 18:34:29 +00:00
Vladislav Bolkhovitin
f3238333dd
Copyrights updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3200 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 20:02:04 +00:00
Bart Van Assche
2dce167153
scst_local: Ported to kernel 2.6.37.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3194 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:58:18 +00:00
Bart Van Assche
94b01ca7a3
Added 2.6.37-related files (svn merge -c3129 https://scst.svn.sourceforge.net/svnroot/scst/branches/sysfs-tree-changes ).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 14:12:44 +00:00
Vladislav Bolkhovitin
14930d39a9
Making creation of default target and session by default
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-18 15:53:59 +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
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
Bart Van Assche
a5417c1641
Compilation: Disabled -Wextra on RHEL5 since it triggers too many uninteresting warnings on that platform.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2615 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 10:20:16 +00:00
Bart Van Assche
3667335dca
Copied and renamed the 2.6.35 in-tree files (does not build yet!).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2429 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 12:20:34 +00:00
Bart Van Assche
6ace2a37bc
Avoid that sparse complains on the scst_local source code.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2288 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-27 15:27:33 +00:00
Vladislav Bolkhovitin
27ba7c24d8
Docs updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2232 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 12:22:02 +00:00
Vladislav Bolkhovitin
2d9473d073
Scstadmin now can create sessions, so update README
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2224 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 18:57:13 +00:00
Richard Sharpe
56e6f52c54
remove an unneeded include file
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 04:47:43 +00:00
Richard Sharpe
2fc8c5ea79
Fix the AEN code, particularly the work function stuff to work with older
...
versions of the kernel. Also, use correct specifiers in some places, ie %zd
where a negative number could be printed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2149 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-20 14:30:00 +00:00
Richard Sharpe
25520184a4
A small coding style fix, plus a specifier fix in an ifdef block. The coding
...
style fix conforms to the kernel coding standard and uses if (!xxx) rather
than if (NULL == xxx).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-17 04:00:15 +00:00
Richard Sharpe
3d41efd784
Add an #ifndef CONFIG_SCST_PROC around the checking for add_default_tgt so that
...
we use the old PROC behavior.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 02:43:33 +00:00
Vladislav Bolkhovitin
11fade176a
Scan host only if it has LUNs
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:15:02 +00:00
Vladislav Bolkhovitin
f6a2a6b4db
CDB splitting added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2115 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:02:35 +00:00
Vladislav Bolkhovitin
98b09a7a26
SG chaining implemented
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 20:47:44 +00:00
Richard Sharpe
d4d9b4c5ed
I think this fixes the problem Vlad had after he reworked scst_local.c but he
...
seems to have removed the setting of hpnt->max_id, so it seems the default is
7. Set it to 0 because we only want one ID on the device, and we don't do
any checking ...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 20:28:47 +00:00
Richard Sharpe
118900953e
Fix the module parm description so that the name matches the correct name.
...
Also, this approach changes the default behavior for people who are using
CONFIG_SCST_PROC because the default was that a single host/tgt was added,
but now they have to change their /etc/modules.d/scst.conf or whatever to
add add_default_tgt=1.
I am not sure that is a good thing.
With the last few commits and this one, I have tested on 2.6.34.1 and 2.6.28
and things seem to work. I am now looking at the problem Vlad reported with
CONFIG_SCST_PROC where local devices show up under SCSI bus or device from 0
to 7.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 18:11:42 +00:00
Richard Sharpe
bad63dc691
Fix a bug where is we load without specifying add_default_tgt=1 we cause an
...
oops when we try to unload scst_local. This is because we were unregistering
the driver if we did not add a default target, but we try to do that again
when we try to unload the driver.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 05:48:27 +00:00