debian:/home/fujita# tgtadm --op update --mode sys --lld iscsi -n iSNS -v On tgtadm: system mode: option '-L' is not allowed/supported debian:/home/fujita# tgtadm --op show --mode sys --lld iscsi tgtadm: option 2 not supported in system mode Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp> --- usr/tgtadm.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/usr/tgtadm.c b/usr/tgtadm.c index 28ed754..4f120d7 100644 --- a/usr/tgtadm.c +++ b/usr/tgtadm.c @@ -557,7 +557,7 @@ int main(int argc, char **argv) if (mode == MODE_SYSTEM) { switch (op) { case OP_UPDATE: - rc = verify_mode_params(argc, argv, "monvC"); + rc = verify_mode_params(argc, argv, "LmonvC"); if (rc) { eprintf("system mode: option '-%c' is not " "allowed/supported\n", rc); @@ -569,6 +569,9 @@ int main(int argc, char **argv) exit(EINVAL); } break; + case OP_SHOW: + case OP_DELETE: + break; default: eprintf("option %d not supported in system mode\n", op); exit(EINVAL); -- 1.5.6.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 |