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
Bart Van Assche
5484d6dfc4
ib_srpt: Eliminate the magic constant SRPT_DEF_SG_PER_WQE
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3626 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-25 19:13:50 +00:00
Vladislav Bolkhovitin
2e400cbcdc
Docs updates. Update for qla2x00t-howto-debian.html was sent by Barry Schut <b.schut@iu.nl>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3609 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-24 00:46:02 +00:00
Bart Van Assche
d5757a2e11
Kernel version updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3608 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-23 18:23:38 +00:00
Bart Van Assche
fd5df29c9c
ib_srpt: Remove two superfluous blank lines
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3607 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-22 19:28:15 +00:00
Bart Van Assche
0c0cf3215b
scstadmin: Multiple -write_config bug fixes.
...
Bug fixes:
- Do not write out the line "# Non-key attributes" for the top level if -nonkey
has not been specified.
- If -nonkey has been specified, write out the device handler creation time
attributes too (blocksize, o_direct, read_only, removable, ...).
- If -nonkey has been specified, write out the LUN creation time attributes
too (read_only).
Also, simplify the -write_config implementation by introducing the Perl
subroutines serializeKeyAttr() and serializeNkAttr().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3606 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-22 19:18:39 +00:00
Vladislav Bolkhovitin
6a6dd2bf08
Fix crash on TP check, if file name is NULL
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3603 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-20 20:40:32 +00:00
Vladislav Bolkhovitin
5ff5d0e667
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3601 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-20 20:09:04 +00:00
Bart Van Assche
f9488e7083
scstadmin: Minor source code simplification
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3600 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-19 18:43:31 +00:00
Bart Van Assche
08b55c2ce9
scstadmin: Another return value consistency improvement
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3599 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-19 17:30:41 +00:00
Bart Van Assche
5d77498e7a
scstadmin: Use 1 instead of TRUE where an integer exit code is returned
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-19 16:58:29 +00:00
Bart Van Assche
990d1aae3c
scstadmin: Escape a single quote in order not to confuse syntax highlighting editors
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-19 16:39:52 +00:00