|
|
6c64be |
From 7a5cd01731e0eb86960cc4fa543136b7e3a86e1e Mon Sep 17 00:00:00 2001
|
|
|
6c64be |
From: Mike Christie <michaelc@cs.wisc.edu>
|
|
|
6c64be |
Date: Mon, 13 May 2013 03:19:54 -0500
|
|
|
6c64be |
Subject: Allow firmware mode to use debug flag
|
|
|
6c64be |
|
|
|
6c64be |
From Lee Duncan:
|
|
|
6c64be |
|
|
|
6c64be |
When iscsiadm is called with "-m fw", the debug flag can be
|
|
|
6c64be |
useful.
|
|
|
6c64be |
|
|
|
6c64be |
Signed-off-by: Hannes Reinecke <hare@suse.com>
|
|
|
6c64be |
Signed-off-by: Lee Duncan <lduncan@suse.com>
|
|
|
6c64be |
---
|
|
|
6c64be |
doc/iscsiadm.8 | 2 +-
|
|
|
6c64be |
usr/iscsiadm.c | 4 ++--
|
|
|
6c64be |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
6c64be |
|
|
|
6c64be |
diff --git a/doc/iscsiadm.8 b/doc/iscsiadm.8
|
|
|
6c64be |
index b4c7388..6b15fcd 100644
|
|
|
6c64be |
--- a/doc/iscsiadm.8
|
|
|
6c64be |
+++ b/doc/iscsiadm.8
|
|
|
6c64be |
@@ -14,7 +14,7 @@ iscsiadm \- open-iscsi administration utility
|
|
|
6c64be |
|
|
|
6c64be |
\fBiscsiadm\fR \-m iface [ \-hV ] [ \-d debug_level ] [ \-P printlevel ] [ \-I ifacename | \-H hostno|MAC ] [ [ \-o operation ] [ \-n name ] [ \-v value ] ] [ \-C ping [ \-a ip ] [ \-b packetsize ] [ \-c count ] [ \-i interval ] ]
|
|
|
6c64be |
|
|
|
6c64be |
-\fBiscsiadm\fR \-m fw [\-l]
|
|
|
6c64be |
+\fBiscsiadm\fR \-m fw [ \-d debug_level ] [\-l]
|
|
|
6c64be |
|
|
|
6c64be |
\fBiscsiadm\fR \-m host [ \-P printlevel ] [ \-H hostno|MAC ] [ [ \-C chap [ \-o operation ] [ \-v chap_tbl_idx ] ] | [ \-C flashnode [ \-o operation ] [ \-A portal_type ] [ \-x flashnode_idx ] [ \-n name ] [ \-v value ] ] ]
|
|
|
6c64be |
|
|
|
6c64be |
diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
|
|
|
6c64be |
index 5a18522..df76df9 100644
|
|
|
6c64be |
--- a/usr/iscsiadm.c
|
|
|
6c64be |
+++ b/usr/iscsiadm.c
|
|
|
6c64be |
@@ -135,7 +135,7 @@ iscsiadm -m node [ -hV ] [ -d debug_level ] [ -P printlevel ] [ -L all,manual,au
|
|
|
6c64be |
[ [ -o operation ] [ -n name ] [ -v value ] ]\n\
|
|
|
6c64be |
iscsiadm -m session [ -hV ] [ -d debug_level ] [ -P printlevel] [ -r sessionid | sysfsdir [ -R | -u | -s ] [ -o operation ] [ -n name ] [ -v value ] ]\n\
|
|
|
6c64be |
iscsiadm -m iface [ -hV ] [ -d debug_level ] [ -P printlevel ] [ -I ifacename | -H hostno|MAC ] [ [ -o operation ] [ -n name ] [ -v value ] ] [ -C ping [ -a ip ] [ -b packetsize ] [ -c count ] [ -i interval ] ]\n\
|
|
|
6c64be |
-iscsiadm -m fw [ -l ]\n\
|
|
|
6c64be |
+iscsiadm -m fw [ -d debug_level ] [ -l ]\n\
|
|
|
6c64be |
iscsiadm -m host [ -P printlevel ] [ -H hostno|MAC ] [ [ -C chap [ -o operation ] [ -v chap_tbl_idx ] ] | [ -C flashnode [ -o operation ] [ -A portal_type ] [ -x flashnode_idx ] [ -n name ] [ -v value ] ] ]\n\
|
|
|
6c64be |
iscsiadm -k priority\n");
|
|
|
6c64be |
}
|
|
|
6c64be |
@@ -2987,7 +2987,7 @@ main(int argc, char **argv)
|
|
|
6c64be |
usage(ISCSI_ERR_INVAL);
|
|
|
6c64be |
|
|
|
6c64be |
if (mode == MODE_FW) {
|
|
|
6c64be |
- if ((rc = verify_mode_params(argc, argv, "ml", 0))) {
|
|
|
6c64be |
+ if ((rc = verify_mode_params(argc, argv, "dml", 0))) {
|
|
|
6c64be |
log_error("fw mode: option '-%c' is not "
|
|
|
6c64be |
"allowed/supported", rc);
|
|
|
6c64be |
rc = ISCSI_ERR_INVAL;
|
|
|
6c64be |
--
|
|
|
6c64be |
1.8.1.4
|
|
|
6c64be |
|