Issuing the command  fcoeadm -l  returns the help dialogue and
fcoeadm: option requires an argument -- 'l'

"fcoeadm -l" should result in:
All LUNS accessed by HBAs is the system should be displayed with
the following information: Device name (e.g., sdb, sdc), ethernet
interface of HBA accessing LUN, FC-ID, LUN number, Capacity in MB
and blocks, Vendor, Model number and online status.

Signed-off-by: Steve Ma <[email protected]>
---

 fcoeadm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fcoeadm.c b/fcoeadm.c
index a0f78ad..5af7bbe 100644
--- a/fcoeadm.c
+++ b/fcoeadm.c
@@ -45,7 +45,7 @@ static struct option fcoeadm_opts[] = {
        {"reset", 1, 0, 'r'},
        {"interface", 1, 0, 'i'},
        {"target", 2, 0, 't'},
-       {"lun", 1, 0, 'l'},
+       {"lun", 2, 0, 'l'},
        {"stats", 1, 0, 's'},
        {"help", 0, 0, 'h'},
        {"version", 0, 0, 'v'},
@@ -441,7 +441,7 @@ int main(int argc, char *argv[])
        strncpy(progname, basename(argv[0]), sizeof(progname));
        memset(opt_info, 0, sizeof(*opt_info));
 
-       while ((opt = getopt_long(argc, argv, "c:d:r:itl:s:n:hv",
+       while ((opt = getopt_long(argc, argv, "c:d:r:itls:n:hv",
                                  fcoeadm_opts, NULL)) != -1) {
                switch (opt) {
                case 'c':

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to