94ae7e973d
- fcoemon cannot start FIP responder (bsc#988887) * 0010-fcoemon-fixup-log_nlmsg_error.patch * 0011-fcoemon-Add-debugging-message-for-recv.patch * 0012-fcoemon-Retry-fcm_link_getlink-on-EBUSY.patch * 0013-Fallback-to-default-MAC-address-for-FIP.patch - Rediff patch * 0006-fipvlan-fixup-return-value-on-error.patch - Rename patch * old: 0009-fcoemon-c-add-a-check-to-verify-if-dcbd-is-to-be-initialized-else-do-not-try-to-connect-to-dcbd-lldpad.patch * new: 0009-fcoemon.c-Add-a-check-to-verify-if-dcbd-is-to-be-ini.patch - Fixup spec file to correctly refer to service_del_postun - Don't activate DCB on adapters which do DCB in Hardware (bsc#985816) + 0009-fcoemon-c-add-a-check-to-verify-if-dcbd-is-to-be-initialized-else-do-not-try-to-connect-to-dcbd-lldpad.patch - Update to version 1.0.31 (FATE#320515) + 0009-fcoe-utils-Add-sysfs_hba-to-to-fcoemon_utils.patch + 0010-fcoeadm-Use-internal-sysfs-based-hba-lib-for-informa.patch + 0011-fcoeadm-Use-internal-sysfs-lib-to-display-target-and.patch + 0012-fcoeadm-Use-internal-sysfs-lib-to-display-port-stati.patch + 0013-fcoeadm-Get-rid-of-some-includes.patch + 0014-fcoemon-Use-internal-sysfs_hba-library.patch + 0015-libutil-remove-definition-of-sa_hex_format.patch + 0016-fcping-Convert-fcping-to-internal-sysfs-based-implem.patch + 0017-configure.ac-Remove-libHBAAPIv2-and-libhbalinux2.patch + 0018-support-multiple-connections.patch + 0019-fcoeadm_display-Fix-display-of-NPIV-ports.patch - Fix display of NPIV ports (bsc#951859) + 0019-fcoeadm_display-Fix-display-of-NPIV-ports.patch OBS-URL: https://build.opensuse.org/request/show/408431 OBS-URL: https://build.opensuse.org/package/show/network:fcoe/fcoe-utils?expand=0&rev=27
39 lines
886 B
Diff
39 lines
886 B
Diff
From 28c841380880fb95f3096c42dc89fa0487504a45 Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Tue, 13 May 2014 09:44:17 +0200
|
|
Subject: fipvlan: fixup return value on error
|
|
|
|
fipvlan should return 1 on error or ENODEV (=19) if no interfaces
|
|
were found.
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
---
|
|
fipvlan.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/fipvlan.c b/fipvlan.c
|
|
index 2059276..a8d18b7 100644
|
|
--- a/fipvlan.c
|
|
+++ b/fipvlan.c
|
|
@@ -981,7 +981,7 @@ int main(int argc, char **argv)
|
|
|
|
ns = rtnl_socket(RTMGRP_LINK);
|
|
if (ns < 0) {
|
|
- rc = ns;
|
|
+ rc = 1;
|
|
goto ns_err;
|
|
}
|
|
pfd_add(ns);
|
|
@@ -1001,7 +1001,7 @@ int main(int argc, char **argv)
|
|
"no interfaces to perform discovery on");
|
|
else
|
|
FIP_LOG("no interfaces to perform discovery on");
|
|
- exit(1);
|
|
+ exit(ENODEV);
|
|
}
|
|
|
|
do_vlan_discovery();
|
|
--
|
|
2.6.6
|
|
|