8786 Commits

Author SHA1 Message Date
Bart Van Assche
2b224a26ca Clarified two paragraphs in the iSCSI how-to.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 15:40:24 +00:00
Bart Van Assche
9b43962c6e Reverted r3097 because the 2.6.35.10 source code is not yet available.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3109 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 15:14:52 +00:00
Bart Van Assche
178fd02ce9 Made error handling code in scst_main.c more consistent without changing its functionality and added a letter "s" in one error message.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 13:33:44 +00:00
Bart Van Assche
6028abbb99 Added definition of macro scst_assert_activity_suspended().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 13:10:09 +00:00
Vladislav Bolkhovitin
8797dbd533 Cleanup. In scst_cmd_done_pr_preempt() cmd->pr_abort_counter and, hence, saved_cmd_done must be not NULL.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 20:45:13 +00:00
Bart Van Assche
b69080d5f9 Updated kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3097 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 17:52:26 +00:00
Bart Van Assche
d1ef0a2ccd Fixed a typo in iscsi-scst/doc/iscsi-scst-howto.txt.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3096 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 16:49:00 +00:00
Vladislav Bolkhovitin
e3241c4abb Fix wrong last_len computation reported by ido benda <idombd@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 16:44:37 +00:00
Bart Van Assche
c46913f455 Removed superfluous casts.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 16:04:25 +00:00
Vladislav Bolkhovitin
e24296ad98 Fix case when after INCOMING_MAX overflow no listen events requested to be provided by poll().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 15:48:51 +00:00
Bart Van Assche
1c18e2faf2 scst/sysfs: Moved SGV sysfs implementation from source file scst_sysfs.c to scst_mem.c.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 14:36:00 +00:00
Bart Van Assche
2d141454c9 scst/sysfs: Renamed a variable.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 13:58:41 +00:00
Bart Van Assche
9383e778e6 scst/sysfs: Moved sysfs attribute definitions immediately after the corresponding method definitions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 13:24:46 +00:00
Bart Van Assche
6e1e8656e1 scst/sysfs: Made error handling style consistent with upstream kernel code.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 13:13:17 +00:00
Bart Van Assche
896b616a37 Eliminated 11 more forward declarations.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3074 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 12:49:37 +00:00
Bart Van Assche
e7fec9df35 Eliminated two more forward declarations.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3073 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 12:42:41 +00:00
Bart Van Assche
8ddea02f56 Eliminated five more forward declarations.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3072 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 12:34:43 +00:00
Bart Van Assche
369d76eff4 Eliminated two more forward declarations.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3070 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 12:09:47 +00:00
Bart Van Assche
849c9ec801 Eliminated two more forward declarations.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3069 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 12:01:41 +00:00
Bart Van Assche
cf2a3182aa Aligned array data in columns and updated a comment.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3067 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 10:45:31 +00:00
Bart Van Assche
a82024cdc0 Moved sysfs root object implementation near the end of source file scst_sysfs.c.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3066 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 10:35:15 +00:00
Bart Van Assche
a0fdf96c73 Converted function-local constant definitions from #defines into enums.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3065 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 10:27:51 +00:00
Bart Van Assche
fbb98f4333 Moved definition of scst_read_trace_tbl() too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3064 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 10:23:40 +00:00
Bart Van Assche
d12d45dd79 Eliminated two forward declarations by rearranging the function order.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3063 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 10:16:49 +00:00
Bart Van Assche
d5cda9519f Converted kmalloc() + strcpy() into kstrdup().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3056 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-14 12:09:47 +00:00
Bart Van Assche
fac989f319 Added ADD_MODULES variable to initd.debian.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3055 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-14 12:04:36 +00:00
Bart Van Assche
3583bbf2cb Added ADD_MODULES variable to initd.redhat.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3054 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-14 12:03:06 +00:00
Bart Van Assche
110991b976 Removed incorrect references to /etc/init.d/scst.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3053 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-14 11:00:37 +00:00
Bart Van Assche
5ea14dfbe5 Rewrote two comments blocks.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3045 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-13 13:31:57 +00:00
Bart Van Assche
a0e87fb779 Don't read uninitialized variables (was introduced in r2867).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3030 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-12 12:42:30 +00:00
Bart Van Assche
3d707844b0 put_page_callback-2.6.37.patch: diff minimizing / added a missing file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-12 12:22:10 +00:00
Bart Van Assche
49e8bb1aea Fixed a <=2.6.29 compiler warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-11 11:14:11 +00:00
Bart Van Assche
cd984c6f82 ib_srpt: Fix a procfs-only compiler warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3017 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-11 09:58:37 +00:00
Mark Buechler
f55ccbe2cd - Small cleanup of issueLip().
- Issue a LIP on any changes which might effect initiators.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3011 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-10 16:08:52 +00:00
Bart Van Assche
c1fc45ee25 Updated kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3004 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-10 09:49:24 +00:00
Bart Van Assche
8e0e19c9de ib_srpt (sysfs): Converted login_info from a device attribute into a tgt attribute.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3003 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-10 09:47:29 +00:00
Bart Van Assche
d1f587ef29 Builds now on kernel 2.6.37 too.
(svn merge -c2972 https://scst.svn.sourceforge.net/svnroot/scst/branches/sysfs-tree-changes)


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3002 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-10 09:13:03 +00:00
Mark Buechler
8f8dffd91b - Exit 0 and issue warning on empty config file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2979 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-08 15:01:48 +00:00
Mark Buechler
b12f90f23f - Fix init script for CentOS/RedHat. Patch by fzago@systemfabricworks.com
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2978 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-08 14:57:48 +00:00
Bart Van Assche
fe247fde3b Get rid of sparse errors on sk_buff.protocol.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2970 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 18:51:37 +00:00
Mark Buechler
faa2e13cb6 - Properly detect when SCST isn't loaded.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2969 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 17:49:15 +00:00
Mark Buechler
42e623f994 - Hopefully fix all remaining exit code issues.
- Better fix for empty groups - don't write empty braces.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2968 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 17:40:16 +00:00
Bart Van Assche
3fb6b9e6e7 scst_disk builds again on kernel 2.6.30 and before (was broken by r2836).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2965 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 17:30:09 +00:00
Bart Van Assche
17cb105213 Made sure that srpt_release() doesn't oops if srpt_add_one() fails after
having registered the target and before the srpt_post_recv() loop started.

Reported-by: Frank Zago <fzago@systemfabricworks.com>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2963 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 16:59:19 +00:00
Bart Van Assche
7631a26bc9 Removed two unused variables.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2954 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 10:16:14 +00:00
Bart Van Assche
4afc6e1713 Fixed a bug that could cause scstadmin -write_config to generate an invalid
configuration file, e.g.
...
               GROUP a         }
...

Reported-by: Frank Zago <fzago@systemfabricworks.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2952 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 09:35:18 +00:00
Bart Van Assche
1fe5da1dea ib_srpt: Source code formatting cleanup.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2951 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 09:25:23 +00:00
Bart Van Assche
7e158b0c68 Handle iWARP devices graciously - ib_srpt does not work with at least Intel
iWARP devices.

Reported-by: Frank Zago <fzago@systemfabricworks.com>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2950 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 09:21:16 +00:00
Bart Van Assche
c81d1ed573 Converted kmalloc() + sprintf() calls into a kasprintf() call and converted
kmalloc() + strcpy() calls into a kstrdup() call. (Merged r2986, r2897 and
r2901 from the sysfs-changes branch.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2944 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-06 10:56:45 +00:00
Bart Van Assche
c75f68247a Reverted r2748 because it might offend some people.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-04 09:22:00 +00:00