Commit Graph

111 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
4ac6d7a26d [PATCH] scst: Drop detect() method
There is no need for a detect() method - code that is present in such
a method can be moved to module_init(). Hence declare this method
obsolete. Leave the detect pointer member in the target template for
now for out-of-tree SCST drivers.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>

with some improvements



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-21 04:32:36 +00:00
Bart Van Assche
8446d801b6 Source code comment spelling fix: explicitely -> explicitly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5947 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-22 12:32:30 +00:00
Bart Van Assche
e902f79ecf kernel module installation: Skip "depmod" when building an RPM
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5612 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-19 12:48:25 +00:00
Vladislav Bolkhovitin
312c7d85d6 scst_vdisk: Make vendor, product ID and related fields configurable via sysfs
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5316 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-26 02:49:38 +00:00
Bart Van Assche
69d5b979eb Makefiles: 'uninstall' target fixes
Some components don't have 'uninstall' targets although the top-level
Makefile references them. Some others don't remove the proper file.

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


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5290 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-18 08:41:30 +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
Bart Van Assche
c33cf3f81b Makefiles: Convert from "install" to "make modules_install"
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5284 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-14 13:48:54 +00:00
Bart Van Assche
922a8f8178 ibmvstgt: Add #include <linux/module.h> in libsrp.c
Include <linux/module.h> in order to fix the following errors:

ibmvstgt/src/libsrp.c:477:20: error: expected declaration specifiers or ?...? before string constant
 MODULE_DESCRIPTION("SCSI RDMA Protocol lib functions");
                    ^
ibmvstgt/src/libsrp.c:478:15: error: expected declaration specifiers or ?...? before string constant
 MODULE_AUTHOR("FUJITA Tomonori");
               ^
ibmvstgt/src/libsrp.c:479:16: error: expected declaration specifiers or ?...? before string constant
 MODULE_LICENSE("GPL");
                ^

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5184 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-04 14:06:02 +00:00
Bart Van Assche
828fcc6fbd ibmvstgt: Remove the obsolete __devinitdata attribute
See also upstream commit "Drivers: misc: remove __dev* attributes"
(0fe763c570ad2701c830b9e4e53c65ad89c11c32; kernel 3.8).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-01-04 14:03:56 +00:00
Bart Van Assche
dd11e8130a ibmvstgt: Switch to the new and preferred way for printing kernel messages
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4552 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-10-08 13:26:57 +00:00
Bart Van Assche
e1159c7395 ibmvstgt: Convert 'sizeof e' into 'sizeof(e)'
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4541 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-10-02 08:30:15 +00:00
Vladislav Bolkhovitin
955113f493 Sense handling improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4408 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-07-18 21:28:57 +00:00
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
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
Bart Van Assche
49147b3d8d Change __constant_cpu_... into cpu_... since the latter is also evaluated at compile time.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3806 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 19:03:03 +00:00
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
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
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
Bart Van Assche
b88213bb5b ibmvstgt: Corrected README.sysfs.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2743 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 19:43:22 +00:00
Bart Van Assche
6a125e268c ibmvstgt updates: Corrected last argument of scst_rx_cmd() / updated a comment.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2742 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 19:40:20 +00:00
Bart Van Assche
662197f200 ibmvstgt: Made sure that accessing sysfs entries during target creation is harmless.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 09:32:32 +00:00
Bart Van Assche
d99565f6fb ibmvstgt: Workaround to make ibmvstgt patch generation succeed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2670 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 15:10:49 +00:00
Bart Van Assche
a67095dc44 ibmvstgt: Minor comment change.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2668 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 14:02:11 +00:00
Bart Van Assche
57d7323e00 ibmvstgt: Updated documentation.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2664 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 12:40:57 +00:00
Bart Van Assche
8cad61c602 ibmvstgt: Elaborated documentation.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2663 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 10:48:43 +00:00
Bart Van Assche
7bdfe662e8 ibmvstgt: Fixed a checkpatch complaint about whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2662 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 09:52:37 +00:00
Bart Van Assche
17d6ca9cea Merged the ibmvstgt-port branch (svn merge -r2369:2654 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2660 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 09:14:32 +00:00
Bart Van Assche
994e8f8b08 Merged from the ibmvstgt-port branch, such that the nightly build works again.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2630 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-07 08:42:16 +00:00
Bart Van Assche
daa86ab856 ibmvstgt: PowerPC build fix (svn merge -r2369:2589 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port/ibmvstgt/src/dummy_powerpc_defs.h).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2622 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 12:41:54 +00:00
Bart Van Assche
87d0149b49 ibmvstgt: Build and install both ibmvstgt and libsrp (svn merge -r2369:2449 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port/ibmvstgt/Makefile).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2621 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 12:40:10 +00:00
Bart Van Assche
38e8997ad8 Moved srp_task_attribute into srp.h (svn merge -r2508:2511 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2620 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 11:03:31 +00:00
Bart Van Assche
99830e05e7 svn merge -c2508 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2619 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 11:01:34 +00:00
Bart Van Assche
42ea082d08 ibmvstgt: Builds again on RHEL (svn merge -c2398 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2616 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 10:30:16 +00:00
Bart Van Assche
001e95d7c6 Replaced ibmvscsis source code by a more recent version (svn merge -c2585 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2614 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-05 20:35:00 +00:00
Bart Van Assche
902b674235 Added ibmvscsis source code for reference purposes (svn merge -c2552 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2613 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-05 20:33:43 +00:00
Bart Van Assche
371ca0c5d4 Renamed libsrpnew.c to libsrp.c.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2545 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-01 08:44:04 +00:00
Bart Van Assche
6f7e19586a ibmvstgt: Switched to kernel version 2.6.36.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2428 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 12:01:04 +00:00
Bart Van Assche
deceabc0cf Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2427 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 11:41:42 +00:00
Bart Van Assche
e4e8947c8d ibmvstgt: Generate clean patches, even if the input contains #ifdefs on LINUX_VERSION_CODE.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2415 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-16 14:39:52 +00:00
Bart Van Assche
16436f232a Backported to RHEL 5.5 (compile-tested only).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2364 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-07 17:20:51 +00:00
Bart Van Assche
d23c7b3b85 ibmvstgt: started backporting.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2353 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 11:02:24 +00:00
Bart Van Assche
b7f503e256 Removed a superfluous test.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2319 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-30 18:15:43 +00:00
Bart Van Assche
2bbca1d6dd Cleanup.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2313 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-29 19:43:11 +00:00
Bart Van Assche
f2fd7a713a ibmvstgt bug fix.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2312 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-29 19:20:35 +00:00
Bart Van Assche
8d9a5e360c Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2307 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-29 18:33:17 +00:00
Bart Van Assche
f0f814c8ca ibmvstgt: fixed residual handling.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2305 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-29 17:43:31 +00:00
Bart Van Assche
cc7d5a51ee Cleanup.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2282 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-26 16:36:18 +00:00
Bart Van Assche
3469bfaa9d Bug fix.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2281 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-26 16:24:11 +00:00
Bart Van Assche
36bd458d57 Further diff minimizing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2263 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 20:45:09 +00:00