Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 495bbe94e5126512132d69685e96e0d7 > files > 7

fcoe-utils-1.0.18-2.fc15.src.rpm

From 04943a7ed51fe27fb064990c6d1496c3267eedd3 Mon Sep 17 00:00:00 2001
From: Petr Sabata <psabata@redhat.com>
Date: Fri, 1 Apr 2011 00:06:11 +0000
Subject: [PATCH 13/16] fcoe-utils: Documentation for the fcoeadm -Scan option
 and correct long option parsing

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

Signed-off-by: Petr Sabata <psabata@redhat.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
---
 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.4