cannot unbind outgoing user

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

 



I'm unable to unbind an outgoing user, as tgtadm doesn't accept the
--outgoing argument,

# tgtadm --lld iscsi --mode account --op unbind --user user1 --tid 1 --outgoing
tgtadm: target mode: option '-O' is not allowed/supported
#

The following tiny patch fixes this:

--- tgt-1.0.19/usr/tgtadm.c     2011-09-18 10:31:52.000000000 +1000
+++ tgt-1.0.19a/usr/tgtadm.c    2011-09-17 18:57:06.000000000 +1000
@@ -719,7 +719,7 @@ int main(int argc, char **argv)
                                tid = GLOBAL_TID;
                        break;
                case OP_UNBIND:
-                       rc = verify_mode_params(argc, argv, "LmotuC");
+                       rc = verify_mode_params(argc, argv, "LmotuOC");
                        if (rc) {
                                eprintf("target mode: option '-%c' is not "
                                          "allowed/supported\n", rc);


Thanks,

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