72 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
41f5ac2dd2 Merged revisions 7054 via svnmerge from
svn+ssh://svn.code.sf.net/p/scst/svn/trunk

........
  r7054 | vlnb | 2016-12-15 18:49:45 -0800 (Thu, 15 Dec 2016) | 5 lines
  
  Add user space pieces to scst-dist-gzip.
  
  They now essential part of the distribution
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.2.x@7056 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-16 02:56:10 +00:00
Bart Van Assche
76cd77d64a scst.spec.in: Leave out 'r' from revision number
RPM version comparison works correctly with numbers but not if the
revision starts with 'r'. Hence leave out the 'r'.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6855 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-04-09 03:04:09 +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
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
Bart Van Assche
c8b2fd0808 scst.spec: Use QLogic target driver source code from the QLogic git tree if available
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6557 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 18:10:19 +00:00
Bart Van Assche
35bca71f0c scst.spec: Respect KDIR environment variable
Reported-by: Consus <consus@gmx.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6492 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-31 17:27:10 +00:00
Bart Van Assche
6c6a6e6ba3 scst.spec: Make version numbers monotonically increasing for the git tree
Additionally, make the fourth component of the version number configurable.
An example: make RPM REVISION=r733

Reported-by: Consus <consus@gmx.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6491 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-31 15:03:20 +00:00
Vladislav Bolkhovitin
93dc546f3b Fix typo in the new QLA git qla_extraclean target
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6205 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-05-09 03:16:19 +00:00
Vladislav Bolkhovitin
906f4dfefb Merge t10-pi branch back
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6192 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-05-01 04:21:56 +00:00
Bart Van Assche
c32f79f6c1 Revert T10-PI support
The T10-PI patch (r6162) increases the time needed to run mkfs.ext4
over iSCSI from less than a second to several minutes. This is a
regression so revert the T10-PI patch until there is sufficient time
to find the root cause of this regression and to fix this regression.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-31 09:51:24 +00:00
Vladislav Bolkhovitin
a3ad8d1832 T10-PI support
Thanks to SanDisk and Emulex for supporting this work!

Tested with Emulex SDK Release 5.2.1



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6162 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-28 05:22:47 +00:00
Vladislav Bolkhovitin
fe38e4acb2 Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-19 00:01:03 +00:00
Bart Van Assche
94a4227449 Makefile: Add top-level release-archive target
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6127 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-24 13:36:12 +00:00
Bart Van Assche
e8df6e739e scst.spec: Separate DKMS spec into a new spec file
Split scst.spec.in as follows:
* Keep the directives for generating an RPM that contains binary kernel
  modules in scst.spec.in. Add the kernel version number in the RPM name
  to make it possible to install RPMs for different kernel versions next
  to each other.
* Move the directives for generating a DKMS RPM into a new spec file. The
  name of this spec file does not contain a kernel version since the DKMS
  RPM is independent of the kernel version against which it has been built.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-23 14:48:56 +00:00
Vladislav Bolkhovitin
4321761716 Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5991 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-28 05:07:46 +00:00
Bart Van Assche
c7b366e8e9 scst.spec.in: Pass kernel version via RPM-variable %{kversion} instead of shell variable ${KVER}
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-16 13:12:22 +00:00
Vladislav Bolkhovitin
d9c9a8b8a2 Fallback to the old qla driver if the git one not detected
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5939 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-19 03:50:58 +00:00
Bart Van Assche
c641574046 rpm build: Add support for qla2x00t driver in QLogic git repository
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5929 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-09 12:33:16 +00:00
Vladislav Bolkhovitin
e63bbf37b2 Integration of the QLogic git's qla2x00t into the SCST tree
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5722 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-21 05:18:43 +00:00
Bart Van Assche
4792feae74 Makefile: Only report which RPMs have been built if "make rpm" is run as a non-privileged user
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5560 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-02 15:31:50 +00:00
Bart Van Assche
e4ab729b48 make rpm: Do not remove rpmbuilddir
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5307 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-24 07:30:50 +00:00
Vladislav Bolkhovitin
8b726a2705 Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5292 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-19 04:06:10 +00:00
Bart Van Assche
7d89372c53 Makefiles: respect DESTDIR when specified
Not all SCST components handle DESTDIR properly, or at all.

In particular:
* INSTALL_MOD_PATH should account for DESTDIR when 'make modules_install'
  is invoked, so the kernel make infrastructure deploys the modules
  and runs depmod against the proper directory tree.
* depmods must include a '-b' option to reference the proper directory tree.
* Drop special ISCSI_DESTDIR.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5289 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-18 08:40:36 +00:00
Bart Van Assche
79b8ce942e Makefiles: calculate KVER properly
When deriving the kernel version (KVER) from KDIR, the file
$(KDIR)/include/config/kernel.release should be preferred over
'make kernelversion'.

For example, the Ubuntu 3.2.0-23-generic kernel has a kernel.release
file containing '3.2.0-23-generic', but 'make kernelversion' returns
3.2.14. Since the modules are stored under /lib/modules/3.2.0-23-generic,
the value in kernel.release is the correct one to use.
    
Also:
- Evaluate KVER only once
- All depmod commands must include KVER
    
Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
[bvanassche: Split long lines / removed trailing whitespace]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5286 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-14 15:52:10 +00:00
Vladislav Bolkhovitin
00851a7501 Merge of adding iSER web page and copyright updates from the iSER branch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5241 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-28 05:17:26 +00:00
Bart Van Assche
34d764426a scst: Make it possible to build an RPM
Make it possible to build an SCST RPM via the command "make rpm".
The contents of the two RPMs built by this command is as follows:

$ rpm -qlp rpmbuilddir/RPMS/x86_64/scst-3.11.8+-3.0.0.*-1.x86_64.rpm
/lib/modules/3.11.8+/extra
/lib/modules/3.11.8+/extra/dev_handlers
/lib/modules/3.11.8+/extra/dev_handlers/scst_cdrom.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_changer.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_disk.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_modisk.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_processor.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_raid.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_tape.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_user.ko
/lib/modules/3.11.8+/extra/dev_handlers/scst_vdisk.ko
/lib/modules/3.11.8+/extra/fcst.ko
/lib/modules/3.11.8+/extra/ib_srpt.ko
/lib/modules/3.11.8+/extra/iscsi-scst.ko
/lib/modules/3.11.8+/extra/qla2x00tgt.ko
/lib/modules/3.11.8+/extra/qla2xxx_scst.ko
/lib/modules/3.11.8+/extra/scst.ko
/lib/modules/3.11.8+/extra/scst_local.ko
/usr/sbin/iscsi-scst-adm
/usr/sbin/iscsi-scstd
/usr/share/man/man5/iscsi-scstd.conf.5.gz
/usr/share/man/man8/iscsi-scst-adm.8.gz
/usr/share/man/man8/iscsi-scstd.8.gz
/var/lib/scst
$ rpm -qlp rpmbuilddir/RPMS/x86_64/scst-3.11.8+-devel-3.0.0.*-1.x86_64.rpm
/usr/include/scst
/usr/include/scst/Module.symvers
/usr/include/scst/scst.h
/usr/include/scst/scst_const.h
/usr/include/scst/scst_debug.h
/usr/include/scst/scst_sgv.h
/usr/include/scst/scst_user.h


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-03 12:04:35 +00:00
Vladislav Bolkhovitin
10ca1d2f20 Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4767 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-02-20 02:05:29 +00:00
Vladislav Bolkhovitin
930135ee7b Minor help improvement
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4223 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-24 21:34:11 +00:00
Vladislav Bolkhovitin
eb95049061 Copyrights updated + cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-18 02:26:39 +00:00
Bart Van Assche
356f2339a7 fcst: add make 2debug / 2release / 2perf support
Make "make 2debug / 2release / 2perf support" work for fcst. Add -fno-inline
in debug mode. Remove unused defines. Remove a trailing tab.

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


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4026 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-21 09:30:19 +00:00
Bart Van Assche
84f56dfa67 srpt: Change default build mode from release to debug. Add support for "make 2debug" / "make 2release" / "make 2perf".
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3759 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 09:26:17 +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
14e7b436bd Remove TAGS file on extraclean
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3507 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 18:22:52 +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
Vladislav Bolkhovitin
daa2c6e05e Let's don't build docs by default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3323 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-29 14:32:52 +00:00
Vladislav Bolkhovitin
7817242b6a Minor docs handling improvement
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3321 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-29 14:16:43 +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
5e1796cb88 Added processing of scstadmin in disable_proc/enable_proc as suggested by Bryan Mesich <bryan.mesich@ndsu.edu>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3234 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-28 23:55:04 +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
Vladislav Bolkhovitin
d5e230f260 Building TAGS added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:01:41 +00:00
Richard Sharpe
485f7a128b Switch on support for make debug2release etc in scst_local
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2056 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 19:15:50 +00:00
Vladislav Bolkhovitin
b69787ba59 Patch from Bryan Mesich <bryan.mesich@ndsu.edu> that sets KVER if KDIR is defined.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1993 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-25 18:45:28 +00:00
Vladislav Bolkhovitin
b53e4cb4c1 Merge of the pr branch with additional fixes for problems found during extra testing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 17:46:46 +00:00
Vladislav Bolkhovitin
4d5aaf047b Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-06 08:57:48 +00:00
Vladislav Bolkhovitin
08161076f8 - New main Makefile target fcst added
- Preliminary fixes to compile on 2.6.33



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1515 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-20 20:08:10 +00:00
Vladislav Bolkhovitin
b611a22ed0 Patch from Christian Motschke <motschke@itso-berlin.de>:
I had some problems compiling scst due to some bashisms in the Makefiles. As
you will know, Debian uses /bin/dash as default shell and /bin/sh is only a
link to /bin/dash. I can either change the default shell, (or in my opinion
the better solution) use SHELL=/bin/bash in the Makefile.
I have made a patch for the Makefiles in question (I hope, that are all
Makefiles).



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-10 19:32:31 +00:00
Vladislav Bolkhovitin
82b04b2a00 Merge of the sysfs branch. To enable the sysfs interface you should run "make disable_proc". To switch back on the procfs interface you should run "make disable_proc".
The sysfs intarface is mostly finished. Only initiators-oriented access control not implemented and not all target drivers are updated. Only qla2x00t has been fully updated.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1229 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-21 16:49:52 +00:00
Vladislav Bolkhovitin
f572d4ff79 - Copyrights updated.
- Other minor updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@803 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-27 19:01:28 +00:00
Vladislav Bolkhovitin
491bb7e16b Patch from andy yan <andyysj@gmail.com>:
Target driver for Marvell 88SE64xx(3G) and 88SE94xx(6G) SAS cards



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@772 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 16:00:08 +00:00
Vladislav Bolkhovitin
643c7ab2d1 Patch from Ruben Laban <r.laban@ism.nl>:
I replaced all occurences of DISTDIR with DESTDIR and also introduced SBINDIR (and friends) to some other Makefiles. 



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@719 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-25 19:33:10 +00:00