Bart Van Assche
beeef55b6f
Use __packed instead of __attribute__((packed)).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3500 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 10:40:07 +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
375597fedf
iSCSI-SCST: only define __packed for those kernels versions that do not have a definition for __packed.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3498 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 08:03:32 +00:00
Bart Van Assche
4839c8167f
iscsi-scst: get rid of two "suspect code indent for conditional statements" checkpatch complaints.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3497 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 07:19:12 +00:00
Bart Van Assche
35ddd54980
qla2x00t: get rid of checkpatch complaints about spaces at the start of a line.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 07:00:48 +00:00
Bart Van Assche
c37081aed5
Move spaces in long #warning/#error lines to the end of the previous line to shut up checkpatch.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 06:59:40 +00:00
Bart Van Assche
45e53fdd85
scst_sysfs.c: Convert spaces to tabs.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3494 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 06:57:50 +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
dc65372a4d
ib_srpt: Coding style fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3492 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 06:32:47 +00:00
Bart Van Assche
285d4bedcc
scstadmin: fixed bug in "make uninstall" - specify proper directory when uninstalling scstadmin.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3491 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-28 15:59:16 +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
b901fe2958
iSCSI-SCST builds again on RHEL 5.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3488 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-28 10:37:46 +00:00
Bart Van Assche
500986e3cc
Removed a superfluous line.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3484 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-27 10:33:59 +00:00
Bart Van Assche
182cb39e35
Reverted r3477.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3483 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-27 10:15:41 +00:00
Bart Van Assche
cefaa38fae
scstadmin/Makefile robustness improvements for the "install" target
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3480 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-26 18:26:41 +00:00
Vladislav Bolkhovitin
4aee257140
Fix crash if /var/lib/scst/pr not found
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3478 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-25 19:59:38 +00:00
Bart Van Assche
aab99c0b0e
Reverted r3476 because the relevant kernel patches haven't been mirrored yet.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3477 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-25 15:12:40 +00:00
Bart Van Assche
b969fbf9cb
Update kernel versions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3476 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-25 10:16:58 +00:00
Vladislav Bolkhovitin
554c044fe6
ChangeLogs updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-25 00:25:11 +00:00
Vladislav Bolkhovitin
805f38cd4f
Docs about how to migrate from the deprecated ib_srpt_target_X layout updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3472 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-23 19:24:41 +00:00
Bart Van Assche
1b82611fff
Added kernel version 2.6.39.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-22 09:52:53 +00:00
Vladislav Bolkhovitin
c9d6e80898
On NEED_THREAD current function should be immediately finished
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3466 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 19:09:45 +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
Bart Van Assche
453cf8fd2e
Removed spaces in front of tabs.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3463 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 10:45:56 +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
3a2ba412c3
Blocked commands should not pass again through order checks
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3461 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-18 21:50:01 +00:00
Vladislav Bolkhovitin
c54ebba11a
Some more TM cleanups/improvements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3460 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-18 21:45:09 +00:00
Vladislav Bolkhovitin
70f7ce2c58
Regenerated scst_exec_req_fifo patches with fix for memory leak on errors processing path discovered and fixed by Steve Corbin <steve.corbin@virtualcomputer.com>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3459 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-18 01:22:22 +00:00
Vladislav Bolkhovitin
988cd9fe3b
Fix for double scst_check_local_events() call crash on commands processing path
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3458 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-18 00:46:37 +00:00
Bart Van Assche
6b3ad5d0fe
Refined ALUA documentation:
...
- Added pointer to information about associating iSCSI targets with network interfaces.
- Added information about configuring ALUA multipath on a Linux initiator.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3457 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-17 19:28:56 +00:00
Bart Van Assche
f82565d129
scstadmin/Makefile: verify whether the Perl module ExtUtils::MakeMaker has been installed before trying to install scstadmin itself. Based on a suggestion by Hiroyuki Sato.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-16 18:25:33 +00:00
Mark Buechler
b41b5b2f65
- Fix a small typo.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3455 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-13 19:21:16 +00:00
Mark Buechler
ccbc2e6400
- Add LUN 0 warning.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3454 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-13 19:05:56 +00:00
Bart Van Assche
2a12a99cff
scripts/run-regression-tests: echo "FAILED" if compilation failed.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3453 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-13 10:40:40 +00:00
Bart Van Assche
fc82862369
iscsi-scst: Fixed a compilation error that only occurred with GENERATING_UPSTREAM_PATCH defined.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3452 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-13 06:13:52 +00:00
Bart Van Assche
28ceea6df9
Added missing scst_tg.o as reported by Novgorodov Igor.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3451 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-13 05:59:51 +00:00
Vladislav Bolkhovitin
5e7544e5a4
TM handling fixes, part2, hopefully, final.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3450 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-12 01:31:01 +00:00
Vladislav Bolkhovitin
02aced3f19
Minor logging changes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3449 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-11 16:28:41 +00:00
Bart Van Assche
570be3dce6
Update kernel versions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3448 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-11 11:01:32 +00:00
Bart Van Assche
663d39f1ea
iscsi-scst/kernel/iscsi.c: fix a checkpatch complaint about whitespace.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-11 11:00:01 +00:00
Vladislav Bolkhovitin
e1447ae241
Add implicit ALUA support. On a setup with more than one target port
...
(sometimes called storage head) this patch makes it possible to tell the
initiator which port to use. Since that information can be specified per LUN,
with this patch it is not only possible to tell the initiator which path to
choose but also to balance the load over target ports. Target port attributes
can not only be defined for target ports that exist on the system on which
SCST is running but also for target ports present on other nodes of the same
HA setup. As far as I know this feature is unique among open source storage
target implementations.
Note: with this patch SCSI target port attributes can be defined for each LUN
defined on each SCST target individually. Such an SCST target is either a
physical entity (e.g. a HCA for the ib_srpt driver) or a logical entity (e.g.
an iSCSI target for the iscsi_scst driver). In the last case it is up to the
user to make sure that there is a one-to-one relationship between SCST target
and SCSI target port.
This patch is based on the specifications in the ANSI T10 spc4r30 document.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3446 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-11 02:22:48 +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
70eb596f60
Rework iSCSI aborts to make them more correct and remove recent workarounds (one more post-IET cleanup)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3444 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-09 23:07:23 +00:00
Mark Buechler
1ee4416700
- Enable all hardware targets before adding virtual ones.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3443 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-09 20:03:07 +00:00
Bart Van Assche
6d823a16fa
Updated kernel versions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-08 11:59:05 +00:00
Bart Van Assche
e47c6eb768
scst.h: Avoid that including scst.h before <linux/slab.h> triggers a warning about a preprocessor symbol redefinition.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3441 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-08 11:55:43 +00:00
Vladislav Bolkhovitin
33caaa6ee7
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3440 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-05 22:47:28 +00:00
Vladislav Bolkhovitin
a0a388396f
Fix incorrect errors reporting on deleting LUNs from groups in the proc interface
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3439 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-05 22:46:18 +00:00