[stgt] [PATCH] print account info for iser in target show

Alexander Nezhinsky alexandern at Voltaire.COM
Tue Feb 1 17:51:12 CET 2011


Print account info for iser (not only for iscsi) in target show.

Signed-off-by: Alexander Nezhinsky <alexandern at voltaire.com>
---
 usr/target.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/usr/target.c b/usr/target.c
index d96d93e..82d8f70 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -1795,7 +1795,8 @@ int tgt_target_show_all(char *buf, int rest)
 				 lu->path ? : "None",
 				 open_flags_to_str(strflags, lu->bsoflags));
 
-		if (!strcmp(tgt_drivers[target->lid]->name, "iscsi")) {
+		if (!strcmp(tgt_drivers[target->lid]->name, "iscsi") ||
+		    !strcmp(tgt_drivers[target->lid]->name, "iser")) {
 			int i, aid;
 
 			shprintf(total, buf, rest, _TAB1
--
1.6.5.5
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list