Re: unbind user from tid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Aug 2010 11:47:39 +0200
Berthold Gunreben <bg@xxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux