Bart Van Assche
5bda39d769
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7263 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 16:24:16 +00:00
Bart Van Assche
f8fab6fcab
scst: Fix build for kernels 3.15 and older
...
blk_rq_set_block_pc() was introduced in kernel 3.16.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7262 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 16:18:00 +00:00
Bart Van Assche
1190cf1ea1
scst/src/scst_lib.c: Fix recently introduced checkpatch complaints
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7261 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 16:00:09 +00:00
Bart Van Assche
4c05086b59
scst, iscsi-scst: Introduce scst_read(), scst_write(), scst_readv() and scst_writev()
...
This makes it easier to add support for new kernel versions, e.g. kernel
version v4.14.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7260 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 05:50:44 +00:00
Bart Van Assche
64c76f339c
scst: Introduce the kernel v4.14 bio_set_dev() macro
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7259 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 05:49:08 +00:00
Bart Van Assche
62a0e4569f
ib_srpt: Kernel 4.14 build fix
...
Signed-off-by: Peter Vyazovik <fuzzhead0@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7258 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 05:48:16 +00:00
Bart Van Assche
9153f57314
iscsi-scst/usr/Makefile: Pass -Wno-format-truncation if supported
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7257 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-12 05:01:16 +00:00
Vladislav Bolkhovitin
b65d646a2f
Unpdate for kernels 4.12+
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7256 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-14 02:18:56 +00:00
Bart Van Assche
7b5dcab494
scripts/specialize-patch: Fix #elif handling
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7255 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-12 15:03:13 +00:00
Bart Van Assche
8f704cbe83
qla2x00t: Fix scst_debug.h include path for the in-tree build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7254 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-12 14:56:44 +00:00
Vladislav Bolkhovitin
ea826a80d8
scst: add example of active non-optimized setup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7253 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-12 03:22:02 +00:00
Vladislav Bolkhovitin
339bc321a4
qla2x00t: update FW version information as suggested by Jens-U. Mozdzen <jmozdzen@nde.ag>
...
See https://sourceforge.net/p/scst/mailman/message/36068827/
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7251 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-10 02:06:13 +00:00
Bart Van Assche
ebbb2f39b1
scst/include/backport.h: Follow-up for r7248
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7250 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-09 19:58:15 +00:00
Bart Van Assche
47b7da25aa
scst: Fix SCSI pass-through for kernel version v4.11 and later
...
See also trunk r7153.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7249 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-09 18:15:00 +00:00
Bart Van Assche
16fe64bc13
scst_vdisk: Fix a bug in the Linux kernel v4.13 port
...
See also trunk r7240.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7248 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-09 18:10:48 +00:00
Bart Van Assche
a9750a6bff
fcst: Fix in-tree build
...
See also r7243.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7247 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-06 15:08:00 +00:00
Bart Van Assche
aae7d099f1
qla2x00t: Port to openSUSE Leap
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7244 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-05 23:48:51 +00:00
Bart Van Assche
4c9fb0ecf0
fcst: Port to openSUSE Leap
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7243 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-05 23:48:25 +00:00
Bart Van Assche
d3a4f1d79f
scst: Port to openSUSE Leap 42.x
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7242 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-05 16:57:27 +00:00
Bart Van Assche
a05903d9bf
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7241 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-03 23:10:03 +00:00
Bart Van Assche
c0419026e3
scst: Port to kernel v4.13
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7240 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-03 23:08:29 +00:00
Bart Van Assche
8d3f00f0ec
isert-scst: Make an error message more informative
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7239 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-03 22:49:35 +00:00
Bart Van Assche
1a82332127
scripts/specialize-patch: Process CONFIG_SCST_STRICT_SERIALIZING correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7238 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-03 00:05:42 +00:00
Bart Van Assche
d554163553
scripts/generate-kernel-patch: Fix a regression introduced in r7164
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7237 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-03 00:04:53 +00:00
Bart Van Assche
57bc445974
scripts/specialize-patch: Process ENABLE_NPIV and FC_VPORT_CREATE_DEFINED correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7236 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-02 23:56:47 +00:00
Bart Van Assche
e7ccfcf213
iscsi-scst/Makefile, Ubuntu: Simplify code for version querying
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-09-25 23:35:49 +00:00
Bart Van Assche
63f352fc06
iscsi-scst/Makefile: Change MOFED path into /usr/src/ofa_kernel/default
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7234 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-09-25 01:52:53 +00:00
Bart Van Assche
b39a0c64a2
ib_srpt: Support systems with more than 255 CPU cores
...
Signed-off-by: Kirill Malkin <kirillmalkin.km@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-09-20 15:09:38 +00:00
Vladislav Bolkhovitin
4851afc5cb
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7232 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-09-06 03:23:23 +00:00
Vladislav Bolkhovitin
d0c448116a
Change version to 3.4
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7230 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-09-01 04:04:00 +00:00
Vladislav Bolkhovitin
cb995761c3
SVN_TAGS: 3.3.x branch start noted
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7226 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-09-01 03:54:36 +00:00
Bart Van Assche
bb021c1a84
Update svn:ignore property for multiple directories
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7224 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-28 01:58:15 +00:00
Bart Van Assche
1b4ba27d76
scripts/specialize-patch: Add support for HAVE_RDMA_DESTROY_AH
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7223 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-28 01:38:30 +00:00
Bart Van Assche
0518777b2d
iscsi-scst: Suppress a recently introduced compiler warning
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7222 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 22:20:01 +00:00
Bart Van Assche
673dc1d90c
nightly/conf/nightly.conf: Add more kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7221 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 21:43:12 +00:00
Bart Van Assche
bbaf688a0e
ib_srpt: Build fix for kernels before v4.12
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7220 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 21:40:23 +00:00
Bart Van Assche
cc2b24478c
iscsi-scst/kernel/event.c: Port to kernel v4.12
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7219 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:53:16 +00:00
Bart Van Assche
1e457529eb
ib_srpt: Port to Linux kernel v4.12
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7218 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:40:59 +00:00
Bart Van Assche
617c48e138
scst: More fall-through annotations for gcc 7
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7217 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:40:42 +00:00
Bart Van Assche
9e35afe1e0
Annotate fall-through in switch statements in a form recognized by gcc 7
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:28:57 +00:00
Bart Van Assche
f3d11b715b
iscsi-scst/Makefile: Add include/uapi directory to the include path
...
Reported-by: Sergey Gorenko <sergeygo@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7215 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-10 19:39:27 +00:00
Bart Van Assche
64d40aeeb2
iscsi-scst/Makefile: Simplify MLNX_OFED support code
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7214 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-10 18:26:29 +00:00
Bart Van Assche
4edaf3e4bf
iscsi-scst/Makefile: Simplify MLNX_OFED detection for Red Hat
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7213 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-10 18:25:47 +00:00
Vladislav Bolkhovitin
4c269fa728
In the current implementation of SCST/trunk the recently introduced
...
"active" attribute for vdisk_blockio devices is managed by an ALUA
state change (start/finish), for specific ALUA states (eg,
active/standby). Relying on ALUA state changes to open/close the
back-end block device does indeed work for some SCST configurations,
however, some users desire advanced control over this setting, and
prefer to handle opening/closing a back-end block device from the
cluster resource agent (RA) script. Certain ambiguous situations can
also arise if more than one target group exists per SCST device
group... in this case, a back-end device may flip/flop (opened/closed)
and may end up in an inconsistent state if care is not taken in the
implementation of the cluster RA.
The patch below makes the "active" sysfs attribute for vdisk_blockio
readable/writable by a user, thereby giving full control over a
device's opened/closed state. The default behavior for SCST
vdisk_blockio devices is to allow ALUA state changes to control the
opened/closed ("active") state of a back-end device
(bind_alua_state=1). If the user wishes to handle setting the "active"
attribute themselves via a script or cluster RA, they would set
bind_alua_state=0 for the vdisk_blockio device, and the "active"
attribute would not be modified on ALUA state changes, it is then left
up to the user to handle this.
The patch below also fixes a bug where the attribute value is not
changed when the appropriate ALUA state is set, unless a target
session exists for the target group target; see here for more
information: https://sourceforge.net/p/scst/mailman/message/35898014/
Signed-off-by: Marc A. Smith <marc.smith@parodyne.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7212 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-07-26 03:18:30 +00:00
Vladislav Bolkhovitin
792a896abb
With the new 'active' attribute, a bug exists where the attribute
...
value is not changed when the appropriate ALUA state is set, unless a
target session exists for the target group target; this patch fixes
that bug, see here for more information:
https://sourceforge.net/p/scst/mailman/message/35898014/
Signed-off-by: Marc A. Smith <marc.smith@parodyne.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7211 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-07-15 03:26:11 +00:00
Vladislav Bolkhovitin
c967700cd7
scst: Linux kernel v4.12 warning fix.
...
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7208 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-13 03:58:26 +00:00
Vladislav Bolkhovitin
213a11e07b
scst: minor cleanup for previous commit
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7207 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-07 01:23:59 +00:00
Vladislav Bolkhovitin
e174d00f08
scst: update ALUA documentation (Active/Non-Optimized)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7206 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-07 01:13:58 +00:00
Vladislav Bolkhovitin
64d07d25cf
scst_vdisk: 'numa_node_id' signed attribute value fix
...
The "numa_node_id" attribute reside in the scst_vdisk_dev struct as
signed integer and may well be negative values (eg, -1), so move fetching
it above the unsigned attributes and use kstrtoll() to retrieve the
values.
Signed-off-by: Marc A. Smith <marc.smith@parodyne.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7205 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-06 04:20:09 +00:00
Vladislav Bolkhovitin
0ae66a082e
Fix dereference beyond last sg element
...
Reported-By: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7204 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-03 04:02:22 +00:00