This patch add a simple description for the fcoeadm -Scan along with the
long option fix.

---
 doc/fcoeadm.txt |    5 +++++
 fcoeadm.c       |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/doc/fcoeadm.txt b/doc/fcoeadm.txt
index 2b1cf0a..2552d4d 100644
--- a/doc/fcoeadm.txt
+++ b/doc/fcoeadm.txt
@@ -27,6 +27,8 @@ SYNOPSIS
 
 *fcoeadm* -i|--interface [_ethX_]
 
+*fcoeadm* -S|--Scan [_ethX_]
+
 *fcoeadm* -t|--target [_ethX_]
 
 *fcoeadm* -l|--lun [_ethX_]
@@ -68,6 +70,9 @@ OPTIONS
        Show information about the FCoE instance on the specified network
        interface, or all FCoE instances if no network interface is specified.
 
+*-S*, *--Scan* _ethX_::
+       Validates that the interface name has an active FCoE session.
+
 *-t*, *--target* [_ethX_]::
        Show information about the discovered targets associated with the
        FCoE instance on the specified network interface.
diff --git a/fcoeadm.c b/fcoeadm.c
index 0573d91..3cbff71 100644
--- a/fcoeadm.c
+++ b/fcoeadm.c
@@ -39,6 +39,7 @@ static struct option fcoeadm_opts[] = {
        {"destroy", required_argument, 0, 'd'},
        {"reset", required_argument, 0, 'r'},
        {"interface", no_argument, 0, 'i'},
+       {"Scan", required_argument, 0, 'S'},
        {"target", no_argument, 0, 't'},
        {"lun", no_argument, 0, 'l'},
        {"stats", no_argument, 0, 's'},
-- 
1.7.4

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

Reply via email to