Bart Van Assche
bad6359752
scstadmin: Fix copy/paste bugs in the error messages in initiators() and luns().
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3699 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-20 16:39:12 +00:00
Bart Van Assche
573ab14fe1
scstadmin: Unify the code for enumerating all SCST devices and the code for enumerating all SCST devices associated with a specific device handler
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3697 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-20 14:47:45 +00:00
Bart Van Assche
a66cbc4115
scstadmin: Add support for the sysfs interface provided by the code on the sysfs-tree-changes branch
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3696 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-20 12:47:04 +00:00
Bart Van Assche
158182310c
scstadmin: Add local variables for emacs
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3694 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-20 06:54:59 +00:00
Bart Van Assche
be2a156d3d
/etc/init.d/scst: Replace another instance of "echo y | scstadmin" by "scstadmin -noprompt".
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3693 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-19 19:06:02 +00:00
Bart Van Assche
b635ddf133
Whitespace-ony changes: use tab to indent and remove trailing whitespace
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3692 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-19 16:10:11 +00:00
Bart Van Assche
6640a95b54
scstadmin: Fix handlers(), the subroutine that scans for loaded device handlers
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3691 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-19 15:39:39 +00:00
Bart Van Assche
8fd3c8dcac
scstadmin: Make clear that the initiator group argument is optional for the LUN manipulation commands.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3687 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-18 11:54:02 +00:00
Bart Van Assche
6b84c4cfdb
scstadmin: Change help text wording.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3686 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-18 10:37:31 +00:00
Bart Van Assche
8d652ce151
scstadmin: When adding a target attribute, report that a target attribute is being added instead of a driver attribute.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3685 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-18 10:00:13 +00:00
Bart Van Assche
5346d1cfd9
scstadmin: Should have been included in r3683.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3684 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-18 09:13:12 +00:00
Bart Van Assche
3ea5e2d4e5
scstadmin: Partially revert r3678. Checking whether a group name has been specified is the responsability of the Perl command line parser.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3683 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-18 08:56:06 +00:00
Bart Van Assche
d57423be9a
scstadmin: Make -write_config write out initiator names in alphabetical order
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3682 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-18 07:54:12 +00:00
Bart Van Assche
bdba6df123
scstadmin: Only show usage information if -h or -help has been specified. Do not try to execute the specified command if there is a syntax error in the command line arguments.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3681 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-18 07:49:05 +00:00
Bart Van Assche
a2186fddc0
/etc/init.d/scst: Use the -noprompt option of scstadmin instead of "echo y |".
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3680 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-18 07:46:17 +00:00
Bart Van Assche
c972696b3b
scstadmin: Make clear that -group is optional for -set_lun_attr.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3679 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-17 14:07:18 +00:00
Bart Van Assche
f3b7c16dff
scstadmin: Add information about -list_grp_attr in the scstadmin help text. Also, complain if no group name has been specified for -list_grp_attr.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3678 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-17 13:54:28 +00:00
Bart Van Assche
12be13f881
scstadmin: Add missing comma in an error message
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3677 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-17 13:30:14 +00:00
Bart Van Assche
02405d17f6
scstadmin: Fix documentation of -list_lun_attr and also the error message printed if -driver or -target is missing for -list_lun_attr.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3676 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-17 13:20:59 +00:00
Bart Van Assche
0fec18302a
scstadmin -list_drv_attr: Do not print the error message "No such driver found" for target drivers without attributes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3675 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-17 13:10:39 +00:00
Bart Van Assche
fd96524a64
scstadmin: Fix a documentation inconsistency
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3674 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-17 11:34:09 +00:00
Vladislav Bolkhovitin
654cc65319
put_page_callback patch for RHEL61 implemented by Patrick Zwahlen <paz@navixia.com>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3673 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-16 03:41:06 +00:00
Bart Van Assche
ca66f0fa2d
fcst: Add a paragraph to the README
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3672 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-10 11:04:49 +00:00
Vladislav Bolkhovitin
660cc185d8
Let's print initiator and target names for not found LUNs to simplify diagnostics
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3663 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-07 19:58:11 +00:00
Vladislav Bolkhovitin
dc7cd39f2b
Logging cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3662 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-07 19:56:26 +00:00
Vladislav Bolkhovitin
1843f692de
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3661 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-07 19:52:45 +00:00
Vladislav Bolkhovitin
8bfb6b40d7
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3660 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-07 19:52:17 +00:00
Bart Van Assche
43c366ecf3
fcst: Add a paragraph in the README about the FCoE protocol.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3659 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-07 18:53:58 +00:00
Bart Van Assche
e97c482436
scst: Avoid that scst_pr_remove_device_files() causes a crash if pr_file_name == NULL or pr_file_name1 == NULL
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3657 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-05 16:49:23 +00:00
Bart Van Assche
834015970b
Add iscsi-scst/kernel/patches/rhel/put_page_callback_addendum-rhel6.patch
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3656 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-04 16:20:23 +00:00
Bart Van Assche
de5750b8fb
scst_vdisk: Only mark manually set thin_provisioned sysfs attributes as [key]
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3655 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-03 10:04:02 +00:00
Bart Van Assche
42d47feb26
scst_vdisk: Always add a newline after [key] in sysfs attribute values
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3654 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-03 10:03:04 +00:00
Bart Van Assche
30540fd289
scstadmin: Add command-line options -h and --help
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3653 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-03 09:36:33 +00:00
Bart Van Assche
4f9a54f694
Send scstadmin help text to stdout instead of stderr such that it is easier to pipe to less
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3652 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-02 12:30:34 +00:00
Bart Van Assche
bf75702c0b
scst: Avoid that the compiler complains about 'dev' being unused with CONFIG_SCST_STRICT_SERIALIZING enabled
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3651 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-02 11:55:51 +00:00
Bart Van Assche
6a353597eb
ib_srpt: Remove a trailing tab
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3650 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-02 11:54:14 +00:00
Bart Van Assche
42c151b01c
ib_srpt: Increase RDMA completion time from 60s to 80s such that it is above the maximum time it can take for the HCA to deliver a completion (which is 60.129s with local ack timeout = 18 and retry_cnt = 7)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3649 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-02 11:36:44 +00:00
Bart Van Assche
fa232d0c22
ib_srpt: Log QP timeout if debugging is enabled
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3648 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-01 19:26:11 +00:00
Bart Van Assche
32f5924e18
ib_srpt: Zero-initialize QP attributes before invoking ib_modify_qp()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3647 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-01 19:19:20 +00:00
Bart Van Assche
d48497f4d3
scstadmin: Whitespace fixes for the -write_config changes introduced in r3606.
...
Separate device handler key and non-key attributes with a single blank line
instead of two. Indent <target>.<lun>.<attribute> with three tabs instead
of four.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3646 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-30 18:40:29 +00:00
Vladislav Bolkhovitin
f36e96833d
- scst_check_local_events() should be called in scst_real_exec() and
...
scst_local_exec(), because if a command passed in those procedures, it
for sure was delayed in some list, so recheck if it was aborted is
necessary.
- Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3645 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-30 01:01:17 +00:00
Vladislav Bolkhovitin
2e7a79a83c
Major cleanups:
...
- SCST_CMD_STATE_* and SCST_MCMD_STATE_* constants converted to enums and made more readable
- Dev handlers don't have to call scst_check_local_events() anymore, except if they implement internal queuing
Other minor cleanups and fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3644 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-29 01:45:42 +00:00
Vladislav Bolkhovitin
1f7337c8ac
- Added CPU barriers around io_context_ready manipulations
...
- Docs updates
- Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3635 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-28 01:08:31 +00:00
Bart Van Assche
50dfafb30a
ib_srpt: Update test documentation
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3633 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 14:57:11 +00:00
Bart Van Assche
8681a0124a
ib_srpt: Avoid that failed multipart RDMA transfers cause havoc.
...
Multipart RDMA transfers can fail after one or more but not all RDMA transfers
have been initiated because either an IB cable has been pulled or the ib_srpt
kernel module has been unloaded while an RDMA transfer is being set up.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3632 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 14:46:23 +00:00
Bart Van Assche
97ee608748
ib_srpt: Embed HCA name in srpt thread name
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3631 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 14:32:00 +00:00
Bart Van Assche
eff4f33b70
ib_srpt: Relax a BUG_ON() statement into WARN_ON()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3630 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 14:30:38 +00:00
Bart Van Assche
d08012d8cd
ib_srpt: Inline srpt_release_channel()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3629 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 13:33:09 +00:00
Bart Van Assche
3e6f7ba432
ib_srpt: Document known max_sge limitations
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3628 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 07:20:49 +00:00
Bart Van Assche
85ac2c728b
ib_srpt: Works again on mthca (not tested yet). A quote from the OFED 1.2.5
...
release notes (docs/mthca_release_notes.txt), section "3. Known Issues":
3. In mem-free devices, RC QPs can be created with a maximum of (max_sge - 3)
entries only.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3627 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-25 19:32:32 +00:00