[stgt] unbind user from tid

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu Aug 19 14:49:55 CEST 2010


On Tue, 17 Aug 2010 11:47:39 +0200
Berthold Gunreben <bg at suse.de> wrote:

> Hi All,
> 
> doing some tests with tgt, I have problems to unbind a user from a target:
> 
> # tgtadm --lld iscsi --mode account --op bind --tid 1 --user testuser
> # tgtadm --lld iscsi --mode account --op unbind --tid 1 --user testuser
> tgtadm: target mode: option '-t' is not allowed/supported
> 
> Is there a different way to unbind a user?

That's a bug. Can you try the following patch?

Thanks,

diff --git a/usr/tgtadm.c b/usr/tgtadm.c
index b3f3765..fc93ad9 100644
--- a/usr/tgtadm.c
+++ b/usr/tgtadm.c
@@ -694,7 +694,7 @@ int main(int argc, char **argv)
 				tid = GLOBAL_TID;
 			break;
 		case OP_UNBIND:
-			rc = verify_mode_params(argc, argv, "LmouC");
+			rc = verify_mode_params(argc, argv, "LmotuC");
 			if (rc) {
 				eprintf("target mode: option '-%c' is not "
 					  "allowed/supported\n", rc);

--
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