13 years agoPatch from Gal Rosen <galr@storwize.com>:
vlnb [Thu, 28 Aug 2008 15:48:35 +0000 (15:48 +0000)]
Patch from Gal Rosen <galr@storwize.com>:

Mailbox is 16 bits, and the shift should be of 2 bytes (16 bits) not 2 bits, and 1 byte not 1 bit

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@492 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoForgotten to be changed during 1.0.0 release externally seen SCST revision
vlnb [Wed, 20 Aug 2008 15:33:18 +0000 (15:33 +0000)]
Forgotten to be changed during 1.0.0 release externally seen SCST revision

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@490 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoMake qlaispd sleep interruptible so as to now
zorko [Sat, 16 Aug 2008 17:05:07 +0000 (17:05 +0000)]
Make qlaispd sleep interruptible so as to now
skew process statistics.

Submitted by: Stanislaw Gruszka

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@489 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFixed the following sparse warnings:
zorko [Thu, 14 Aug 2008 22:42:58 +0000 (22:42 +0000)]
Fixed the following sparse warnings:

warning: Using plain integer as NULL pointer
warning: obsolete struct initializer, use C99 syntax
warning: symbol 'hba_api_ioctl_operations' was not declared. Should it be static?

Submitted-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@488 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoReturn value of the script depend on the return value of the
vlnb [Wed, 13 Aug 2008 18:09:23 +0000 (18:09 +0000)]
Return value of the script depend on the return value of the
last executed function.

In some functions (for example: start) the return value of the
last executable is being returned but not being checked anywhere.
If this last operaion fails, the return value shouldn't be 0.

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@487 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPolishing for in-tree
vlnb [Fri, 1 Aug 2008 17:59:05 +0000 (17:59 +0000)]
Polishing for in-tree

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@486 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCheckpath and compiler fixes
vlnb [Fri, 1 Aug 2008 17:03:24 +0000 (17:03 +0000)]
Checkpath and compiler fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@485 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Compiler made to show more warnings
vlnb [Thu, 31 Jul 2008 10:01:45 +0000 (10:01 +0000)]
 - Compiler made to show more warnings
 - New warnings fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@484 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCompilation if target mode disabled fixed
vlnb [Tue, 29 Jul 2008 17:19:58 +0000 (17:19 +0000)]
Compilation if target mode disabled fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@483 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoLocking documented
vlnb [Tue, 29 Jul 2008 17:18:08 +0000 (17:18 +0000)]
Locking documented

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@482 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAll empty lines due
vlnb [Mon, 28 Jul 2008 18:19:34 +0000 (18:19 +0000)]
All empty lines due
to code commented out because inside #if LINUX_VERSION_CODE ... /
#endif is now really removed.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@481 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFixed minor iSCSI standard violation
vlnb [Mon, 28 Jul 2008 11:08:32 +0000 (11:08 +0000)]
Fixed minor iSCSI standard violation

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@480 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoSCST_HIGHMEM removed as not needed
vlnb [Fri, 25 Jul 2008 16:46:27 +0000 (16:46 +0000)]
SCST_HIGHMEM removed as not needed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@479 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoUpdated corespondingly to the latest changes in the driver (kernels <2.6.26 not suppo...
vlnb [Fri, 25 Jul 2008 10:57:42 +0000 (10:57 +0000)]
Updated corespondingly to the latest changes in the driver (kernels <2.6.26 not supported anymore)

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@478 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdded qla2x00t HOWTO written by Amit Mehta. Web pages updated correspondingly.
vlnb [Thu, 24 Jul 2008 16:23:44 +0000 (16:23 +0000)]
Added qla2x00t HOWTO written by Amit Mehta. Web pages updated correspondingly.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@477 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoMinor the kernel patch preparations fixes
vlnb [Thu, 24 Jul 2008 10:38:51 +0000 (10:38 +0000)]
Minor the kernel patch preparations fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@476 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Update for 2.6.26
vlnb [Thu, 24 Jul 2008 09:22:55 +0000 (09:22 +0000)]
 - Update for 2.6.26
 - Zero-copy feature, introduced by put_page_callback patch, made kernel compile time configurable via CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION option. If you upgrade from earlier versions, see the corresponding "[CAUTION]" e-mail in scst-devel mailing list about possible compatibility problems.
 - SRP target temporary removed from "all" and "install" the main Makefile targets, since it isn't compiled on 2.6.26
 - Minor fixes and cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@475 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFix for long standing protection problem in the initiator driver
vlnb [Thu, 24 Jul 2008 09:04:05 +0000 (09:04 +0000)]
Fix for long standing protection problem in the initiator driver

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@474 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoUpdate of the initiator driver to one from kernel 2.6.26. Sorry, the prior kernels...
vlnb [Wed, 23 Jul 2008 17:41:22 +0000 (17:41 +0000)]
Update of the initiator driver to one from kernel 2.6.26. Sorry, the prior kernels not supported anymore, but backport patches are welcome.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@473 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoMinor changes and docs updates
vlnb [Tue, 22 Jul 2008 15:32:42 +0000 (15:32 +0000)]
Minor changes and docs updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@471 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFixes crash on module unload found by Gal Rosen
vlnb [Mon, 21 Jul 2008 17:01:12 +0000 (17:01 +0000)]
Fixes crash on module unload found by Gal Rosen

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@470 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - QLA: minor cleanups
vlnb [Fri, 18 Jul 2008 17:02:13 +0000 (17:02 +0000)]
 - QLA: minor cleanups
 - SCST_USER: microoptimization

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@469 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoSRPT 1.0.0 tag added
vlnb [Fri, 18 Jul 2008 11:08:44 +0000 (11:08 +0000)]
SRPT 1.0.0 tag added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@468 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoTypo fixed
vlnb [Fri, 18 Jul 2008 10:35:56 +0000 (10:35 +0000)]
Typo fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@466 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoUse gfp_t instead of int to hold GFP_* masks.
vlnb [Thu, 17 Jul 2008 18:23:32 +0000 (18:23 +0000)]
Use gfp_t instead of int to hold GFP_* masks.

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@465 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoMinor scstadmin-related improvements
vlnb [Thu, 17 Jul 2008 17:56:57 +0000 (17:56 +0000)]
Minor scstadmin-related improvements

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@464 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFix the following sparse warnings in several locations:
vlnb [Tue, 15 Jul 2008 18:00:19 +0000 (18:00 +0000)]
Fix the following sparse warnings in several locations:

/scst/trunk/scst/src/dev_handlers/scst_dev_handler.h:54:40: warning:
incorrect type in argument 2 (different address spaces)
expected char const *buf
/scst/trunk/scst/src/dev_handlers/scst_dev_handler.h:54:40:    got
char const [noderef] <asn:1>*buf

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@463 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFix the following sparse warnings in several locations:
vlnb [Tue, 15 Jul 2008 17:55:02 +0000 (17:55 +0000)]
Fix the following sparse warnings in several locations:

 warning: incorrect type in argument 2 (different address spaces)
    expected void const [noderef] <asn:1>*from
    got void *<noident>
 warning: symbol '__dev_user_get_next_cmd' was not declared. Should it
be static?

One more optional fix (that i didn't do) is instead of casting
arg in the ioctl() function before every call to function
is to do the casting only once to a temporary variable and
send this variable to every function.

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@462 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFix the following sparse warnings in several locations:
vlnb [Tue, 15 Jul 2008 17:52:16 +0000 (17:52 +0000)]
Fix the following sparse warnings in several locations:

warning: incorrect type in argument 2 (different address spaces)
    expected void const [noderef] <asn:1>*from
    got void *<noident>

One more optional fix (that i didn't do) is instead of casting
arg in the ioctl() function before every call to function
is to do the casting only once to a temporary variable and
send this variable to every function.

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@461 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago- Added init enable instructions to "make install" and README file.
mgandalf [Mon, 14 Jul 2008 20:00:18 +0000 (20:00 +0000)]
- Added init enable instructions to "make install" and README file.
- Changed VERSION on top-level Makefile to MODULE_VERSION to be more clear.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@460 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoRemoved duplicate SCST.pm module file.
mgandalf [Mon, 14 Jul 2008 19:44:04 +0000 (19:44 +0000)]
Removed duplicate SCST.pm module file.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@459 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoSRPT release related updates
vlnb [Mon, 14 Jul 2008 17:20:46 +0000 (17:20 +0000)]
SRPT release related updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@458 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agosrpt: converting makefile back to compile in scst tree
huongvp [Fri, 11 Jul 2008 16:32:48 +0000 (16:32 +0000)]
srpt: converting makefile back to compile in scst tree

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@457 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoChange the 0 integer to NULL to fix the following sparse warning
vlnb [Thu, 10 Jul 2008 11:08:07 +0000 (11:08 +0000)]
Change the 0 integer to NULL to fix the following sparse warning
(in locations that i miss in the previous patch):

warning: Using plain integer as NULL pointer
warning: Using plain integer as NULL pointer

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@456 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoChange the 0 integer to NULL to fix the following sparse warning:
vlnb [Thu, 10 Jul 2008 11:06:20 +0000 (11:06 +0000)]
Change the 0 integer to NULL to fix the following sparse warning:

warning: Using plain integer as NULL pointer

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@455 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFixed not clearly applied xxx2yyy
vlnb [Thu, 10 Jul 2008 11:05:16 +0000 (11:05 +0000)]
Fixed not clearly applied xxx2yyy

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@454 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoApparently the SCST code with debugging and/or tracing enabled compiles fine as
vlnb [Thu, 10 Jul 2008 10:49:06 +0000 (10:49 +0000)]
Apparently the SCST code with debugging and/or tracing enabled compiles fine as
an external module. When applying the SCST kernel patch to the mainstream
kernel tree with debugging and/or tracing enabled however, the resulting code
triggers a compiler error. This is because the symbols DEBUG and TRACING
conflict with symbols with the same named defined in unrelated kernel headers.
The patch below resolves these conflicts by renaming the following preprocessor
  into macro undefined / macro defined.
- In qla_isp/linux/isp_scst.c, renamed DEBUG into DEBUG_ISP_SCST.
- In qla_isp/..., renamed SCSI_TARGET in SCST_SCSI_TARGET.
- In qla_isp/..., renamed SCSI_TARGET_DEV in SCST_SCSI_TARGET_DEV.
Additionally, all CONFIG_SCSI_TARGET* macro's are renamed into CONFIG_SCST* in
order to avoid confusion between the STGT CONFIG-symbols and the SCST CONFIG-

The following additional options are now configurable through Kconfig:

The patch below has been verified as follows:
- Verified that the following command does not print any new warning messages:
  make -s clean && make -C srpt -s clean && make -s scst iscsi-scst && make -C srpt -s
- Verified as follows that the internal SCST patches still apply cleanly:
  for p in *patch; do patch -p0 --dry-run -f -s <$p; done
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, and that the patched kernel tree still
  compiles, installs and boots fine, that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load, and that iSCSI communication
  still works fine. All SCST kernel configuration options that could be
  enabled have been enabled during this test.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@453 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoLet svn ignore symbolic links created when driver is built.
swgruszka [Thu, 10 Jul 2008 07:05:47 +0000 (07:05 +0000)]
Let svn ignore symbolic links created when driver is built.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@452 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdd KVER make parameter and remove Module{,s}.symvers on clean.
swgruszka [Thu, 10 Jul 2008 06:44:28 +0000 (06:44 +0000)]
Add KVER make parameter and remove Module{,s}.symvers on clean.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@451 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agosrpt:
huongvp [Thu, 10 Jul 2008 00:04:49 +0000 (00:04 +0000)]
 - changing Makefile to compile srpt out-of scst tree and in release mode
 - fixing checkpath warnings for kernel inclusion

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@450 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoThe LSI SCST driver does not forward ABORT TASK SET task management messages to SCST...
vlnb [Wed, 9 Jul 2008 17:38:34 +0000 (17:38 +0000)]
The LSI SCST driver does not forward ABORT TASK SET task management messages to SCST.  This patch fixes that.

Signed-off-by: Erik Habbinga <erikhabbinga@inphase-tech.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@449 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdd the "static" qualifier to function that isn't being declared
vlnb [Wed, 9 Jul 2008 17:35:11 +0000 (17:35 +0000)]
Add the "static" qualifier to function that isn't being declared
(in h file) or exported to fix the following sparse warning:

/scst/trunk/iscsi-scst/kernel/iscsi.c:166:6: warning: symbol
'cmnd_free' was not declared. Should it be static?

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@448 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago- Added a proper Makefile.PL to SCST::SCST so now we have a also a
mgandalf [Wed, 9 Jul 2008 17:32:42 +0000 (17:32 +0000)]
- Added a proper Makefile.PL to SCST::SCST so now we have a also a
  proper man page.
- Renamed Changes to ChangeLog
- Updated README to include instructions for installing the perl module.
- Renamed SCST perl module directory tp scst-0.7.4

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@447 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoChange the name of local variable to prevent the following compilation warning:
vlnb [Wed, 9 Jul 2008 17:32:16 +0000 (17:32 +0000)]
Change the name of local variable to prevent the following compilation warning:
/scst/trunk/iscsi-scst/kernel/iscsi.c:190:30: warning: symbol 'req'
shadows an earlier one
/scst/trunk/iscsi-scst/kernel/iscsi.c:182:29: originally declared here

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@446 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoThe patch below implements the following changes:
vlnb [Wed, 9 Jul 2008 17:28:36 +0000 (17:28 +0000)]
The patch below implements the following changes:
- The script specialize-patch now acts as if #define INSIDE_KERNEL_TREE 1
  is effective.
- The script generate-kernel-patch now renames sBUG_ON() into BUG_ON()
  and sBUG() into BUG(). The same script removes the definitions of the
  sBUG_ON(), sBUG() and WARN_ON_ONCE() macro's from the header file
  scst_debug.h. The last macro is only removed for kernel versions later than

This patch has been tested as follows:
- Compared the output of the command "scripts/generate-kernel-patch 2.6.25"
  before and after the changes.
- Verified the newly generated patch with checkpatch. Checkpatch statistics
  are now as follows:
    521 WARNING: line over 80 characters
     12 WARNING: consider using strict_strtoul in preference to simple_strtoul
     10 WARNING: printk() should include KERN_ facility level
      3 WARNING: CVS style keyword markers, these will _not_ be updated
      2 WARNING: do not add new typedefs
      1 WARNING: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
- Verified that the generated kernel patch still applies cleanly to the kernel and that this kernel still compiles, installs and boots fine.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@445 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoThe patch below contains the following changes:
vlnb [Wed, 9 Jul 2008 17:19:24 +0000 (17:19 +0000)]
The patch below contains the following changes:
- Substituted lun_t by uint64_t and removed typedef lun_t.
- Fixed the following class of checkpatch errors (two instances):
    ERROR: space required before the open parenthesis '('

This patch has been verified as follows:
- Checked that the following command still works and did not produce any
  new compiler warnings:
    make -s clean && make -C srpt -s clean && make -s scst iscsi-scst && make -C srpt -s
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.
- Verified that checkpatch does not report any new warnings or errors.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@444 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Forgotten piece of changes for returning to the release mode
vlnb [Wed, 9 Jul 2008 16:58:56 +0000 (16:58 +0000)]
 - Forgotten piece of changes for returning to the release mode
 - QLA_ISP targets in the main Makefile temporary disabled, since they don't support building with specified kernel version

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@443 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Version changed to 1.0.1
vlnb [Wed, 9 Jul 2008 16:44:01 +0000 (16:44 +0000)]
 - Version changed to 1.0.1
 - Switched back to the debug mode

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@442 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoTag 1.0.0 added
vlnb [Wed, 9 Jul 2008 09:46:36 +0000 (09:46 +0000)]
Tag 1.0.0 added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@440 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCosmetics
vlnb [Wed, 9 Jul 2008 09:14:21 +0000 (09:14 +0000)]

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@439 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCosmetics
vlnb [Wed, 9 Jul 2008 07:00:50 +0000 (07:00 +0000)]

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@438 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Known issues added
vlnb [Wed, 9 Jul 2008 06:53:41 +0000 (06:53 +0000)]
 - Known issues added
 - Cosmetics

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@437 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPending changes to match the 1.0.0 released packeges
vlnb [Tue, 8 Jul 2008 19:21:22 +0000 (19:21 +0000)]
Pending changes to match the 1.0.0 released packeges

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@436 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoWEB updates for release 1.0.0
vlnb [Tue, 8 Jul 2008 16:41:52 +0000 (16:41 +0000)]
WEB updates for release 1.0.0

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@435 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdd release2debug and debug2release Makefile targets for qla_isp.
swgruszka [Tue, 8 Jul 2008 07:59:42 +0000 (07:59 +0000)]
Add release2debug and debug2release Makefile targets for qla_isp.
Leave qla_isp in release 'state' as other stuff.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@434 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Version changed to 1.0.0
vlnb [Mon, 7 Jul 2008 18:00:32 +0000 (18:00 +0000)]
 - Version changed to 1.0.0
 - Build configuration changed to "Release"
 - iscsi-scst-howto.txt added
 - ChangeLog's updated
 - Minor docs changes
 - scstadm_install and scstadm_uninstall main Makefile targets added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@433 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Comment about 2008 Linux Storage & Filesystem Workshop added
vlnb [Mon, 7 Jul 2008 17:54:49 +0000 (17:54 +0000)]
 - Comment about 2008 Linux Storage & Filesystem Workshop added
 - scst_user_spec.txt removed, it was committed here by mistake
 - Minor changes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@432 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Install/uninstall added
vlnb [Mon, 7 Jul 2008 17:51:53 +0000 (17:51 +0000)]
 - Install/uninstall added
 - Version fixed

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@431 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdd uninstall makefile target.
swgruszka [Sun, 6 Jul 2008 10:45:25 +0000 (10:45 +0000)]
Add uninstall makefile target.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@430 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCopy Modules.symvers stuff from qla2x00t makefiles to avoid undefined symbols warrning.
swgruszka [Sat, 5 Jul 2008 20:19:11 +0000 (20:19 +0000)]
Copy Modules.symvers stuff from qla2x00t makefiles to avoid undefined symbols warrning.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@429 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdd warrning qla_isp do not support > 2.6.24
swgruszka [Sat, 5 Jul 2008 19:11:16 +0000 (19:11 +0000)]
Add warrning qla_isp do not support > 2.6.24

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@428 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdd "extraclean" entry to the qla_isp Makefiles.
vlnb [Fri, 4 Jul 2008 17:53:30 +0000 (17:53 +0000)]
Add "extraclean" entry to the qla_isp Makefiles.

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@427 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdded qla_isp support to the general Makefile.
vlnb [Wed, 2 Jul 2008 17:43:20 +0000 (17:43 +0000)]
Added qla_isp support to the general Makefile.

The following operations (parametgers to the make) are now supported:
qla_isp, qla_isp_clean, qla_isp_extraclean,
qla_isp_install, qla_isp_uninstall.

But at the moment qla_isp doesn't support all of the needed operations: uninstall and extraclean are not supported in its Makefile.

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@426 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFixes few harmless issues:
vlnb [Mon, 30 Jun 2008 09:50:27 +0000 (09:50 +0000)]
Fixes few harmless issues:
 1. The #define on line 228 of iscsi-scst/usr/isns.c triggers a compiler
warning on ppc.
 2. make iscsi && sudo make iscsi_install triggers the following error
message ( kernel, ppc), but doesn't break installation:
install: cannot stat `usr/iscsi-scst-adm': No such file or directory
 3. Unneeded "unlikely" removed

Issues 1 and 2 reported by Bart Van Assche <bart.vanassche@gmail.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@425 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoMinor updates
vlnb [Mon, 30 Jun 2008 09:38:39 +0000 (09:38 +0000)]
Minor updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@424 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - A complete fix for the problem when a command comes with zero transfer length...
vlnb [Thu, 26 Jun 2008 16:39:05 +0000 (16:39 +0000)]
 - A complete fix for the problem when a command comes with zero transfer length and READ or WRITE data transfer direction
 - Version changed to 1.0.0-rc2

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@423 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoMinor cleanups and docs updates
vlnb [Thu, 26 Jun 2008 16:35:10 +0000 (16:35 +0000)]
Minor cleanups and docs updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@422 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoNew web look
vlnb [Thu, 26 Jun 2008 11:52:09 +0000 (11:52 +0000)]
New web look

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@421 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Fixes incorrect allocation length 0 by scst_user module
vlnb [Mon, 23 Jun 2008 16:32:51 +0000 (16:32 +0000)]
 - Fixes incorrect allocation length 0 by scst_user module
 - Fixes missed case of "allocation length 0 for READ6/WRITE6 means 256".

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@420 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoReplace memory allocation from kzalloc to kmalloc because
vlnb [Thu, 19 Jun 2008 17:54:25 +0000 (17:54 +0000)]
Replace memory allocation from kzalloc to kmalloc because
this memory buffer will be zeroed later on in the code.

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@419 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFix compilation warning in kernels higher than 2.6.16
vlnb [Thu, 19 Jun 2008 17:52:18 +0000 (17:52 +0000)]
Fix compilation warning in kernels higher than 2.6.16
(the prototype of the function strncasecmp was changed in 2.6.16).

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@418 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Fixes not cleanly applies xxx2yyy patches
vlnb [Thu, 19 Jun 2008 17:48:08 +0000 (17:48 +0000)]
 - Fixes not cleanly applies xxx2yyy patches
 - Updated to IET r155
 - Compilation fixes
 - Typos fixes, including patch from Dotan Barak <dotanba@gmail.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@417 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdded error message for a kernel bug, which doesn't allow for poll() to work with...
vlnb [Wed, 18 Jun 2008 09:54:38 +0000 (09:54 +0000)]
Added error message for a kernel bug, which doesn't allow for poll() to work with >256 file descriptors and prevents iscsi-scstd to start.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@416 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Fri, 13 Jun 2008 17:31:29 +0000 (17:31 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below fixes the following class of checkpatch warnings:
- WARNING: braces {} are not necessary for single statement blocks

How this patch has been verified:
- Checked that make -s clean && make -s scst iscsi-scst still works.
- Verified that checkpatch does no longer complain about the placement of

The patch below only changes comments, so it should be safe to include it in
the 1.0.0 release.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@415 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdded option mapping NV -> NV_CACHE.
mgandalf [Fri, 13 Jun 2008 13:38:46 +0000 (13:38 +0000)]
Added option mapping NV -> NV_CACHE.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@414 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Fri, 13 Jun 2008 11:08:23 +0000 (11:08 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The script scripts/specialize-patch'>scripts/specialize-patch is an awk script. Currently it specifies /usr/bin/awk as its interpreter although it doesn't use the standard AWK syntax but the extended GNU AWK syntax. The patch below changes the interpreter name such that the script also works on systems where /usr/bin/awk is not GNU AWK (e.g. Ubuntu 8.04). Note: GNU AWK is not installed by default on all Linux systems. E.g. on Debian systems it's in the gawk package.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@413 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Complete the fix for broken REQUEST SENSE
vlnb [Fri, 13 Jun 2008 10:31:50 +0000 (10:31 +0000)]
 - Complete the fix for broken REQUEST SENSE
 - Cleanup: cleanup_lock shouldn't be IRQ

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@412 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - ISCSI sending response timeout increased to 30 seconds
vlnb [Thu, 12 Jun 2008 18:55:13 +0000 (18:55 +0000)]
 - ISCSI sending response timeout increased to 30 seconds
 - Fixed 2 problems in scst_user on release() cleanup
 - Added per-device memory limit and new scst.ko module parameter scst_max_dev_cmd_mem
 - Cleanups, including important ones
 - Version changed to 1.0.0-rc1

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@411 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFixes broken REQUEST SENSE
vlnb [Thu, 12 Jun 2008 18:37:31 +0000 (18:37 +0000)]
Fixes broken REQUEST SENSE

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@410 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Thu, 12 Jun 2008 14:59:48 +0000 (14:59 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below fixes the following checkpatch warning:
__func__ should be used instead of gcc specific __FUNCTION__

This patch has been tested as follows:
- Checked that make -C ib_srpt still works.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, that the patched kernel still compiles,
  installs and boots and that the scst, iscsi-scst and ib_srpt modules still
  load (I performed rm -rf /lib/modules/* before starting kernel

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@409 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCopyrights updated
vlnb [Thu, 12 Jun 2008 11:39:28 +0000 (11:39 +0000)]
Copyrights updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@408 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Arne Redlich <agr@powerkom-dd.de>:
vlnb [Thu, 12 Jun 2008 11:35:40 +0000 (11:35 +0000)]
Patch from Arne Redlich <agr@powerkom-dd.de>:

Removes unneeded kfree()

Signed-off-by: Arne Redlich <agr@powerkom-dd.de>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@407 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Dotan Barak <dotanba@gmail.com> (applied manually):
vlnb [Thu, 12 Jun 2008 11:32:12 +0000 (11:32 +0000)]
Patch from Dotan Barak <dotanba@gmail.com> (applied manually):

Fix compilation failure in kernel 2.6.19 and below
(bug.h was added only stafrting kernel 2.6.20).

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@406 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Dotan Barak <dotanba@gmail.com>:
vlnb [Thu, 12 Jun 2008 11:25:38 +0000 (11:25 +0000)]
Patch from Dotan Barak <dotanba@gmail.com>:

Replace memory allocation from kzalloc to kmalloc because
this memory buffer will be zeroed later on in the code.

Signed-off by: Dotan Barak <dotanba@gmail.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@405 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Thu, 12 Jun 2008 11:22:15 +0000 (11:22 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below fixes all remaining checkpatch errors:
- ERROR: do not use assignment in if condition
- ERROR: that open brace { should be on the previous line
- ERROR: trailing whitespace
- ERROR: use tabs not spaces
The last three had already been fixed before, but some occurences were
reintroduced in r403. It would be great if new modifications could be checked
for checkpatch errors before being committed.

This patch has been tested as follows:
- Reread the patch below carefully.
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works and does not trigger any compiler warnings.
- Verified that checkpatch does no longer report any errors.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.
- Tested that iSCSI login/logout still works from a remote system, and that
  iSCSI I/O still works.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@404 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoThe major TM processing cleanup in scst_user module which was possible after the...
vlnb [Sat, 31 May 2008 12:05:02 +0000 (12:05 +0000)]
The major TM processing cleanup in scst_user module which was possible after the recent SCST changes, to fix current problems. Also there are fixes for found during development/testing problems. Particularly:

 - PRIO queue was removed from scst_user. Instead, all priority commands now queued in the head of the regular queue. The corresponding code was removed from fileio_tgt as well. It necessary, in the future the priority queue can be easily restored from this patch.

 - pre_unreg_sess() was removed from struct scst_dev_type. The corresponding code was removed from SCST core as well

 - Almost all /proc/scsi_tgt commands now can fail after timeout (90 seconds) with EBUSY

 - Fixed possible incorrect command's retry if double RESET UA is detected.

 - Many minor changes and cleanups

Also docs were updated.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@403 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Thu, 29 May 2008 17:24:18 +0000 (17:24 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below fixes the checkpatch complaints on kfree():
WARNING: kfree(NULL) is safe this check is probabally not required

This patch has been verified as follows:
- Verified that checkpatch does no longer complain about kfree().
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works and does not trigger any new compiler warnings.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.

Note: I'm not sure any of the above verifications did trigger the code paths
changed by this patch.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@402 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago3 small patches from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Wed, 28 May 2008 11:17:08 +0000 (11:17 +0000)]
3 small patches from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below fixes the following category of checkpatch complaints:
ERROR: do not use C99 // comments

This patch has been verified as follows:
- Verified that checkpatch does no longer complain about C99 comments.
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
The patch below fixes the following category of checkpatch complaints:
WARNING: unnecessary cast may hide bugs, see http://c-faq.com/malloc/mallocnocast.html

This patch has been verified as follows:
- Verified that checkpatch does no longer complain about unnecessary casts.
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works and does not trigger any new compiler warnings.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
The patch below fixes the following category of checkpatch warnings:
ERROR: Use of SPIN_LOCK_UNLOCKED is deprecated: see Documentation/spinlocks.txt

This patch has been verified as follows:
- Verified that checkpatch does no longer complain about spinlocks.
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works and does not trigger any new compiler warnings.
- Verified that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@401 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Tue, 27 May 2008 14:31:31 +0000 (14:31 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below fixes the following checkpatch warning:
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable

This patch has been tested as follows:
- Verified that the output of the following command did not change due to the
  patch below:
    find -name '*.[ch]'|xargs grep -h -w EXPORT_SYMBOL | sort
- Checked that make -s clean && make -s iscsi scst && make -s -C srpt still
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@400 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Tue, 27 May 2008 14:28:37 +0000 (14:28 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below fixes the following checkpatch warning:
WARNING: Use #include <linux/...> instead of <asm/...>

This patch has been tested as follows:
- Verified the patch by rereading it.
- Checked that make -s clean && make -s iscsi scst && make -s -C srpt still
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@399 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Tue, 27 May 2008 14:26:15 +0000 (14:26 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below fixes the following categories of checkpatch complaints:
- ERROR: switch and case should be at the same indent
- ERROR: do not initialise statics to 0 or NULL
- ERROR: use tabs not spaces

I have verified that the SCST source code still compiles.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@398 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Mon, 26 May 2008 11:13:04 +0000 (11:13 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

While all warnings on mismatches between printf-style format strings and
argument lists were fixed on i386 and x86_64, gcc prints a large number of
warnings about mismatches when compiling SCST on ppc64. The patch below
fixes these by casting integer arguments to the type (long long unsigned int)
where appropriate.

This patch has been tested as follows:
- Verified the patch by reading it.
- Checked that make -s clean && make -s iscsi scst && make -s -C srpt did not
  trigger any compiler warnings about format strings on i386, x86_64 and ppc.
- Checked that no previously fixed checkpatch warnings were reintroduced in
  the patch generated by generate-kernel-patch.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, and that the patched kernel tree still
  compiles, installs and boots fine.

Additionally, this patch splits a kernel version preprocessor test from one into two lines, such that
the generate-kernel-patch script can process the version check properly.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@397 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Fixed one more 32/64 bits user/kernel incompatibility
vlnb [Mon, 26 May 2008 11:00:19 +0000 (11:00 +0000)]
 - Fixed one more 32/64 bits user/kernel incompatibility
 - Minor fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@396 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCheck preprocesor definitions when releasing firmware.
swgruszka [Sat, 24 May 2008 13:48:20 +0000 (13:48 +0000)]
Check preprocesor definitions when releasing firmware.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@395 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Erik Habbinga <erikhabbinga@inphase-tech.com> to fix out of tree building...
vlnb [Fri, 23 May 2008 16:00:56 +0000 (16:00 +0000)]
Patch from Erik Habbinga <erikhabbinga@inphase-tech.com> to fix out of tree building introduced in r387 with some changes to prevent such things in the future.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@394 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Fri, 23 May 2008 15:22:12 +0000 (15:22 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below fixes the following checkpatch warning:
__func__ should be used instead of gcc specific __FUNCTION__

This patch has been tested as follows:
- Checked that make iscsi scst still works.
- Checked that after loading the scst module the kernel messages generated
  because of the shell command "echo all >/proc/scsi_tg/trace_level" still
  make sense. An example:
  [  646.408035] [5845]: scst: scst_proc_log_entry_write:346:Changed trace level for "scsi_tgt": old 0x80005f0e, new 0xffffffff
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the kernel, that the patched kernel still compiles,
  installs and boots and that the scst, iscsi-scst and ib_srpt modules still
  load (I performed rm -rf /lib/modules/* before starting kernel

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@393 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Fri, 23 May 2008 15:19:52 +0000 (15:19 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The current version of generate-kernel-patch does not remove preprocessor
statements that should have been removed because intended for another kernel
version (surrounded by #if LINUX_VERSION_CODE ... KERNEL_VERSION(...) / #endif).
The patch below fixes this.

I have verified the patch below by comparing the patch generated by the
old and the new versions of the generate-kernel-patch script:
$ diff p1 p2
< +#if defined(EXTRACHECKS)
< +#endif
> > +
> > +
< +#elif !defined(SCSI_EXEC_REQ_FIFO_DEFINED)
< +#else
< +#endif
> > +
> > +
> > +
> > +

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@392 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago - Fixed problems with 64-bit platforms with 32-bit user space and with non-4K pages
vlnb [Fri, 23 May 2008 15:12:34 +0000 (15:12 +0000)]
 - Fixed problems with 64-bit platforms with 32-bit user space and with non-4K pages
 - From the main Makefile all all LSI/MPT related targets are commented out, because the recent changes in its Makefile have broken them.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@391 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Fri, 23 May 2008 09:56:13 +0000 (09:56 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch adds command-line options -m and -q to the script
generate-kernel-patch. These command line options make it possible to
choose at the time the script is invoked whether or not to include the
qla2x00t and/or mpt code in the generated kernel patch.

Please review.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
Index: scripts/generate-kernel-patch

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@390 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Fri, 23 May 2008 09:38:07 +0000 (09:38 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

The patch below makes sure the SCST code compiles again (it was broken by r386). The patch
includes the following changes:
- Make sure that macro's do not end in a semicolon, because otherwise the
  transformation if (condition) { MACRO; } else {...}
  into if (condition) MACRO; else {...}
  results in a compilation error.
- Aligned backslashes (whitespace-only change).
- One "else{" was incorectly changed into "else { {" -- fixed this.

I have verified that the following command again succeeds:
  make -s iscsi scst && make -s -C srpt && make -s -C qla2x00t

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@389 d57e44dd-8a1f-0410-8b47-8ef2f437770f