Bart Van Assche
6f49179491
Makefiles: Use -Wextra instead of -W
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9040 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-05 02:14:28 +00:00
Bart Van Assche
c647d76ef2
Fix compiler warnings triggered by building against the musl C library
...
See also https://github.com/bvanassche/scst/issues/23 .
Reported-by: Lucian Cristian lucian.cristian@gmail.com
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9001 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-06-01 04:52:50 +00:00
Bart Van Assche
6c785d14b9
usr/fileio/fileio: Fix align_alloc()
...
User space code must not use PAGE_SIZE but must use sysconf(_SC_PAGESIZE)
instead to obtain the page size.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8997 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-06-01 02:09:31 +00:00
Bart Van Assche
fda71c077d
Include <poll.h> instead of <sys/poll.h>
...
According to the Single Unix Specification, the poll() function has been
declared in the <poll.h> header file. This makes the SCST code compatible
with the musl C library. See also https://en.wikipedia.org/wiki/Musl . See
also https://github.com/bvanassche/scst/issues/23 .
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8992 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-31 03:41:17 +00:00
Bart Van Assche
ecaab978f0
scst, scstadmin, ...: Bump the version number to 3.5.0-pre
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8683 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-06 05:28:56 +00:00
Bart Van Assche
fa156aa40d
scripts/update-version: Fix the code for updating the scstadmin version number
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8681 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-04 05:00:49 +00:00
Bart Van Assche
ce557f2f1c
scst, fcst, iscsi-scst, srpt, ...: Bump version number to 3.4.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8674 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-03 04:22:16 +00:00
Bart Van Assche
8ae4d56ad7
usr/fileio/common.c: Annotate a switch/case fall-through
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8360 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-09 16:48:18 +00:00
Bart Van Assche
370e25813e
usr/fileio: Make the coding style more consistent
...
This patch only changes whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8355 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-09 16:25:29 +00:00
Bart Van Assche
22f1132073
Makefiles: Rework build mode switching
...
Move the build_mode file from the top level into the scst directory. Write
build mode defines into scst/include/build_mode.h and include that file
directly or indirectly in all source files that depend on these #defines.
This approach has the advantage that "make clean" does no longer has to
be run when switching between build modes because the kernel build system
recognizes build_mode.h as a dependency and triggers a rebuild of all
source files that directly or indirectly include the build_mode.h header
file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 18:19:38 +00:00
Bart Van Assche
9b37ec66b4
usr/fileio/common.c: Fix a compiler warning
...
Avoid that the compiler complains that the assert() expression compares a
signed with an unsigned integer.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8269 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-21 19:13:35 +00:00
Bart Van Assche
07e936a256
usr/fileio/common.c: Suppress a compiler warning
...
Avoid that gcc 8 complains about the strncpy() call.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8257 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-20 15:53:53 +00:00
Bart Van Assche
3002ba7652
usr/stpgd: Fix the perf build
...
Reported-by: Rob Turk <robtu@rtist.nl >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8256 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-20 15:53:06 +00:00
Bart Van Assche
623d4e6d0a
Makefiles: Use build_mode instead of modifying the Makefile when switching the build mode
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8074 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 19:53:39 +00:00
Bart Van Assche
81c9a1f49d
make uninstall: Do not remove /usr/local/sbin
...
Reported-by: Heiner Lesaar <heiner.lesaar@googlemail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7998 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-01 04:15:01 +00:00
Bart Van Assche
3dcace8794
Remove trailing whitespace from multiple files
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 18:26:51 +00:00
Bart Van Assche
1587638134
Remove support for "make enable_proc" and "make disable_proc"
...
Since RHEL 5 and kernel versions before 2.6.26 rely on procfs support,
this patch removes support for RHEL 5.x and also for kernel versions
before 2.6.26.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7829 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-22 22:13:40 +00:00
Bart Van Assche
69fde133e9
Revert r7524
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7525 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-31 14:25:52 +00:00
Bart Van Assche
91b99af914
scst, srpt, iscsi-scst, qla2x00t, fcst: Bump version number to 3.4.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7524 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-31 14:24:20 +00:00
Bart Van Assche
e1b418938e
usr/stpgd: Fix make install failure for relative DESTDIR
...
When DESTDIR is a relative path, make install fails to install
`scst_on_stpg` for not having created `$(DESTDIR)$(PREFIX)/bin/scst`.
When DESTDIR is an absolute path, make install doesn't fail to install
`scst_on_stpg` because usr/fileio has already created the directory.
usr/stpgd should explicitly create `$(DESTDIR)$(PREFIX)/bin/scst`
so that it can handle a relative DESTDIR, plus be independent of
usr/fileio installation.
--
# cd usr
# make install DESTDIR=./aaa
cd fileio && make install
make[1]: Entering directory '/tmp/scst/usr/fileio'
install -d ./aaa/usr/local/bin/scst
install -m 755 fileio_tgt ./aaa/usr/local/bin/scst
make[1]: Leaving directory '/tmp/scst/usr/fileio'
cd stpgd && make install
make[1]: Entering directory '/tmp/scst/usr/stpgd'
install -d ./aaa/usr/local/sbin
install -m 700 stpgd ./aaa/usr/local/sbin
install -m 700 scst_on_stpg ./aaa/usr/local/bin/scst/scst_on_stpg
install: cannot create regular file './aaa/usr/local/bin/scst/scst_on_stpg': No such file or directory
Makefile:60: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/tmp/scst/usr/stpgd'
Makefile:32: recipe for target 'install' failed
make: *** [install] Error 2
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7403 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-06-04 16:23:45 +00:00
Vladislav Bolkhovitin
f549829482
Copyrights updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7396 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-04-12 03:49:10 +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
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
Vladislav Bolkhovitin
a614104023
usr: fix -Wmissing-prototypes warnings
...
Fix all twelve [-Wmissing-prototypes] warnings by adding "static" to their
declarations.
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7202 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-01 04:08:02 +00:00
Vladislav Bolkhovitin
68fa7e1a0d
Copyright updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 03:19:52 +00:00
Vladislav Bolkhovitin
dd026f8511
fileio_tgt: change "#if DEBUG_TM_FN_IGNORE" to "#ifdef ..."
...
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-19 03:44:20 +00:00
Vladislav Bolkhovitin
eaa99a8770
Fix a few minor "extra" compiler warnings (mostly "const" issues)
...
Add "XXX" comments in a few places about potential problems seen in SCST code,
for future investigation and possible repair.
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7123 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-14 01:03:25 +00:00
Vladislav Bolkhovitin
a23e34fb62
The argument to sleep() would get "promoted" to an integer with value zero.
...
- sleep(0.1);
+ usleep(100*1000);
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-13 22:04:07 +00:00
Vladislav Bolkhovitin
55b7684bb7
fileio_tgt: avoid warnings about casting between pointers and integers of different size
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7053 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-16 02:46:49 +00:00
Vladislav Bolkhovitin
43ef6f912f
fileio_tgt: fix debug output
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7007 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-11 03:30:54 +00:00
Vladislav Bolkhovitin
69863eb497
Increase version to 3.3
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6927 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-03 02:32:17 +00:00
Vladislav Bolkhovitin
9cd57cf50f
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6860 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-04-20 02:48:28 +00:00
Vladislav Bolkhovitin
dd3f46fd28
stpgd: Fix compilation in perf mode
...
Reported-by: TomK <tk@mdevsys.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6815 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-02-24 01:01:54 +00:00
Vladislav Bolkhovitin
fa2f54ac9e
Copyrights updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6787 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-01-22 04:04:43 +00:00
Bart Van Assche
c7ed845936
user space code: Fix the code for generating a release archive
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6782 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-01-20 00:35:29 +00:00
Vladislav Bolkhovitin
cf4aa89416
Cleanups
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6673 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 01:06:51 +00:00
Bart Van Assche
36a48008e9
scst_user, fileio: Fix 2perf build
...
See also trunk r6579.
Reported-by: Alexey Mochkin <alukardd@alukardd.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6660 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-10 23:32:23 +00:00
Vladislav Bolkhovitin
5f7ac7f4bf
Version updated to 3.2.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6593 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 06:17:17 +00:00
Vladislav Bolkhovitin
3fc775c75a
EXTENDED COPY support
...
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6589 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:58:00 +00:00
Vladislav Bolkhovitin
daee4dcb7e
WRITE SAME command improvements
...
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6586 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:54:23 +00:00
Vladislav Bolkhovitin
c619567bba
SCST events sample user space consumer
...
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6581 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:48:24 +00:00
Vladislav Bolkhovitin
ae38d284e0
Explicit ALUA user space
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:40:37 +00:00
Vladislav Bolkhovitin
af841c5c53
Decrease MULTI_CMDS_CNT for better parallelism
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6516 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-18 01:24:10 +00:00
Vladislav Bolkhovitin
45d7f40ec1
Improve release logging
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6478 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-25 02:57:51 +00:00
Vladislav Bolkhovitin
77d6520882
fileio_tgt: small logging improvement
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6468 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 03:11:37 +00:00
Vladislav Bolkhovitin
90ad49cbae
scst_user: optimize performance by exchanging multiple commands/responses per IOCTL
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6466 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 02:57:14 +00:00
Vladislav Bolkhovitin
870b203225
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6465 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 02:54:02 +00:00
Bart Van Assche
4ad34f74d5
fileio: Fix a potential buffer overflow
...
Detected by Coverity.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6384 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-17 00:30:16 +00:00
Bart Van Assche
a0e4cc7288
fileio: Remove dead code
...
There is no FUA bit in WRITE VERIFY commands. Detected by Coverity.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6344 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-16 23:45:51 +00:00
Bart Van Assche
502aef7b1b
scst: Rename SERVICE_ACTION_IN into SERVICE_ACTION_IN_16
...
Rename this constant because it has been renamed in the Linux
kernel.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6335 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-16 20:16:19 +00:00