Bart Van Assche
de5c72d569
nightly build: remove "pcbart" config, rename "cellbuzz" into "nightly" and restore previously removed kernel versions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3813 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 06:58:21 +00:00
Bart Van Assche
d554d56423
scripts/specialize-patch: Make sure that checkpatch doesn't complain about space after operator \!
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3812 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 12:22:31 +00:00
Bart Van Assche
de8bc79ae0
scripts/filter-trace-entry-exit: Filter out "return;" statements at the end of a function that are not preceeded by a label.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3811 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 12:20:25 +00:00
Bart Van Assche
78d62e7dd1
scripts/specialize-patch: Only emit "g1" debug output if debugging has been enabled.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3810 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 11:48:48 +00:00
Bart Van Assche
9455613488
scripts/specialize-patch: Update comments next to #else and #endif directives.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3809 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 11:26:59 +00:00
Bart Van Assche
8f48d8d7e9
Follow-up for r3807: make the hunk headers match again.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3808 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 08:32:23 +00:00
Bart Van Assche
803bae6fb8
scripts/specialize-patch: Remove #elif 0 sections from the output
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3807 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 07:47:32 +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
0042639266
/etc/init.d/scst: Port to Gentoo
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3805 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 16:13:33 +00:00
Bart Van Assche
eb24966570
scst_local: Fix a recently introduced compiler warning.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3804 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 15:51:17 +00:00
Bart Van Assche
0e26a6c7a5
ib_srpt: Change __constant_cpu_... into cpu_... since the latter are also evaluated at compile time
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3803 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 08:48:42 +00:00
Bart Van Assche
4eebec2e1b
Update according to new kernel.org directory tree structure
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3802 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 08:07:38 +00:00
Bart Van Assche
72060a5ec5
Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3801 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-13 14:10:16 +00:00
Vladislav Bolkhovitin
632b6beeeb
Update of SCST_Gentoo_HOWTO.txt to SCST 2.x. Thanks to Willem Boterenbrood <w.boterenbrood@gmail.com>!
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3800 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-09 01:04:57 +00:00
Vladislav Bolkhovitin
2fa4898b5e
Modified patch from Bart Van Assche <bvanassche@acm.org>:
...
The range unmapped by the scst_vdisk handler when processing an UNMAP command
is not correct. The patch below fixes that and also prevents that the following
kernel crash can be triggered on the target:
Call Trace:
[<ffffffffa06b5350>] ? srpt_post_send+0xd0/0x140 [ib_srpt]
[<ffffffff811bb595>] ? cpumask_next_and+0x35/0x50
[<ffffffff810e6296>] shmem_truncate_range+0x7a6/0xa50
[<ffffffffa0612ceb>] ? scst_get_buf_full+0x16b/0x270 [scst]
[<ffffffffa069beb6>] vdisk_exec_unmap+0x1d6/0x4b0 [scst_vdisk]
[<ffffffff813c0cb6>] ? _raw_spin_unlock+0x16/0x40
[<ffffffffa069dadc>] vdisk_do_job+0x5fc/0x950 [scst_vdisk]
[<ffffffffa0605402>] scst_do_real_exec+0xb2/0x400 [scst]
[<ffffffffa06076a7>] scst_exec+0xd7/0x240 [scst]
[<ffffffffa06079b6>] scst_send_for_exec+0x1a6/0x2f0 [scst]
[<ffffffffa06086f8>] scst_process_active_cmd+0x4f8/0x790 [scst]
[<ffffffffa0608a29>] scst_do_job_active+0x99/0x170 [scst]
[<ffffffffa060a3da>] scst_cmd_thread+0x15a/0x3b0 [scst]
[<ffffffff81047470>] ? default_wake_function+0x0/0x20
[<ffffffffa060a280>] ? scst_cmd_thread+0x0/0x3b0 [scst]
[<ffffffff8106dc26>] kthread+0x96/0xa0
[<ffffffff81003cd4>] kernel_thread_helper+0x4/0x10
[<ffffffff8103db01>] ? finish_task_switch+0x51/0xb0
[<ffffffff813c0c7c>] ? _raw_spin_unlock_irq+0x1c/0x40
[<ffffffff813c18b1>] ? restore_args+0x0/0x30
[<ffffffff8106db90>] ? kthread+0x0/0xa0
[<ffffffff81003cd0>] ? kernel_thread_helper+0x0/0x10
Invoking truncate_range() with an end len that is not page-size aligned
triggers it. In other words, with a block size that is below
PAGE_CACHE_SIZE some UNMAP commands could trigger a kernel bug. I think
it's better to print an error message and to skip an UNMAP command
instead of triggering a kernel oops.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3799 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-05 02:07:35 +00:00
Bart Van Assche
47170d1578
ib_srpt: Function tracing output format fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3798 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 12:46:13 +00:00
Bart Van Assche
a897b951f4
scst: Whitespace-only change - indent code properly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3797 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 12:44:15 +00:00
Bart Van Assche
15d2609293
ib_srpt: Avoid that removing ib_srpt while I/O is ongoing sometimes triggers a hang
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3796 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 12:34:31 +00:00
Bart Van Assche
7ea186090f
Fix a recently introduced compiler warning / remove more superfluous double quotes in a #warning statement
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3794 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 09:15:50 +00:00
Bart Van Assche
b500c6bad7
scstadmin works fine with SCST 2.x too
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3793 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 09:05:05 +00:00
Bart Van Assche
705c3754a2
Remove superfluous double quotes from around #warning messages because checkpatch 3.0 complains about these.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3789 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-29 12:58:13 +00:00
Vladislav Bolkhovitin
a29e2d9757
Fix possible deadlock in the sysfs thread processing
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3786 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-28 22:27:22 +00:00
Bart Van Assche
aa4ef7e352
Fix a typo introduced in the previous commit
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3785 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-27 15:05:38 +00:00
Bart Van Assche
d30a411c66
Add kernel version 3.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3784 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-27 14:07:45 +00:00
Bart Van Assche
dbc55781d7
Add remaining Linux kernel 3.0 patches and port nightly build scripts to 3.0 too.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3783 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-27 14:05:47 +00:00
Bart Van Assche
4f828ba8a3
Update scstadmin and scst.conf man pages with information about ALUA. Update the scst.conf example too.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3782 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-27 12:38:51 +00:00
Vladislav Bolkhovitin
90aa221cbb
Update for kernels 3.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3775 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-27 01:13:10 +00:00
Mark Buechler
f58e5ff746
- Help menu cleanup.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3774 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 18:39:14 +00:00
Bart Van Assche
5bb53889f6
scstadmin: Port ALUA support to new sysfs interface
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3772 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 18:31:58 +00:00
Mark Buechler
dc7c3c569d
- Hopefully the last fix for initiator to target.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3771 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 18:28:37 +00:00
Mark Buechler
d590380e90
- Terminology fix pointed out my Bart Van Assche - rename initiator to target wrt target groups.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 18:22:12 +00:00
Mark Buechler
df0b08fd87
- Update man page for minor argument changes.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3768 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 17:18:20 +00:00
Mark Buechler
6dfea77a42
- Sync version with scst.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3767 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 17:03:42 +00:00
Mark Buechler
c69d248484
- Forgot initiators within target groups. ALUA should be complete now.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3766 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 17:03:15 +00:00
Mark Buechler
31a3b9b5b3
- Finish writeConfiguration().
...
- Added clearConfiguration() support for ALUA.
- Added applyConfiguration() support for ALUA.
At this point, ALUA support should be complete.
Todo: Rewrite and simplify a whole lot of redundant code.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3765 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 16:47:49 +00:00
Mark Buechler
16cf933695
- Update addDeviceGroup() to latest svn.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3764 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 13:51:10 +00:00
Bart Van Assche
7999ac6f53
srpt: Make build mode switches silent
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3760 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 09:27:48 +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
Mark Buechler
b21be77a50
- Ignore the new DEVICE_GROUP clause when applying SCST attributes.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3756 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 20:11:21 +00:00
Mark Buechler
8480912712
- Remove some left over debugging.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3755 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 19:21:55 +00:00
Mark Buechler
efb56801e9
- Read current ALUA configuration.
...
- Write current ALUA configuration.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3754 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 19:19:14 +00:00
Mark Buechler
00fcdca302
- Finish out the new ALUA options to scstadmin.
...
- Standardize the new options.
- Bug fixes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3753 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 18:25:48 +00:00
Mark Buechler
03c41350bd
- Add in device group attributes for if/when they are supported.
...
- Add a couple more ALUA arguments to scstadmin.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3752 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-25 15:24:50 +00:00
Bart Van Assche
0e3325b705
ib_srpt: Fix an RHEL-specific compiler warning.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3750 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-24 10:56:57 +00:00
Bart Van Assche
eee245a1c6
scst: Only define KERN_CONT for non-RHEL pre-2.6.24 kernels instead of defining it conditionally.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3749 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-24 10:36:21 +00:00
Bart Van Assche
7535772ccb
Remove kernel 2.6.28 because it doesn't build with a recent "make".
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3748 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-24 10:03:32 +00:00
Bart Van Assche
dea280a0f9
scstadmin: Make (un)installation work again
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3742 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-23 12:25:55 +00:00
Bart Van Assche
84d6b9b6b4
Revert r3737
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3741 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-23 12:08:01 +00:00
Bart Van Assche
a3344b629a
scstadmin: Install scstadmin in the proper directory
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3737 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-23 08:27:34 +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