Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
3494881e70
!31 fix GCC 12 warning
From: @xu_lei_123 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2022-12-30 08:31:06 +00:00
xu_lei_123
5db1a8bb94 Fix GCC 12 warning 2022-12-30 11:32:42 +08:00
openeuler-ci-bot
65ee2a354c
!28 handle NIC names longer than 7 characters
From: @xu_lei_123 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2022-12-30 01:41:30 +00:00
xu_lei_123
eb13138870 handle NIC names longer than 7 characters 2022-12-29 21:53:28 +08:00
openeuler-ci-bot
c145537d6f
!24 fix date error on 1.0.33-2
From: @xu_lei_123 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2022-12-24 06:13:59 +00:00
xu_lei_123
43b4aa2357 fix date error on 1.0.33-2 2022-12-24 12:38:14 +08:00
openeuler-ci-bot
dba50fc69d
!22 [sync] PR-13: 修复arm架构编译失败
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia, @gitee-cmd 
Signed-off-by: @caodongxia, @gitee-cmd
2022-12-12 08:42:50 +00:00
cherry530
18d7acc297 Fix build error
Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 35d0cca39133fb4e1c6d588938d0caa2a371283c)
2022-12-12 15:34:17 +08:00
openeuler-ci-bot
78c22e6a27 !11 fix fcoe.service start error
From: @si-gui
Reviewed-by: @zhuchunyi
Signed-off-by: @zhuchunyi
2021-08-25 11:24:36 +00:00
sunguoshuai
8911d1b50c fix fcoe.service start error 2021-08-25 19:09:15 +08:00
6 changed files with 99 additions and 27 deletions

View File

@ -0,0 +1,25 @@
From 33be0ef3579da7a451df4b945d6b150bea2d4429 Mon Sep 17 00:00:00 2001
From: xu_lei_123 <xulei@xfusion.com>
Date: Fri, 30 Dec 2022 11:10:26 +0800
Subject: [PATCH] Fix GCC 12 warning
---
fcoeadm_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fcoeadm_display.c b/fcoeadm_display.c
index cc8f4fe..ab75172 100644
--- a/fcoeadm_display.c
+++ b/fcoeadm_display.c
@@ -246,7 +246,7 @@ static void show_full_lun_info(unsigned int hba, unsigned int port,
char vendor[256];
char model[256];
char rev[256];
- char *osname;
+ char *osname = NULL;
char *capstr;
uint64_t lba = 0;
uint32_t blksize = 0;
--
2.21.0

View File

@ -0,0 +1,23 @@
From 7f4c8df2adb258d61be3df7cee24afef2901629d Mon Sep 17 00:00:00 2001
From: Guillaume Gardet <guillaume.gardet@arm.com>
Date: Thu, 20 Aug 2020 09:55:47 +0000
Subject: [PATCH 1/1] char can be unsigned on arm, so set signed explicitly as
the check expects it can be negative
---
fcnsq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fcnsq.c b/fcnsq.c
index 1597cd5..c59c428 100644
--- a/fcnsq.c
+++ b/fcnsq.c
@@ -381,7 +381,7 @@ int main(int argc, char *argv[])
u64 wwnn = 0;
int rc = 0;
enum commands cmd = 0;
- char c;
+ signed char c;
uintmax_t wwnn_tmp = 0;
while(1) {

View File

@ -0,0 +1,33 @@
From 74359e5a9965ed26e0b42d890bf802103da6c97f Mon Sep 17 00:00:00 2001
From: xulei <xulei@xfusion.com>
Date: Thu, 29 Dec 2022 20:07:41 +0800
Subject: [PATCH] handle NIC names longer than 7 characters
---
fcoeadm_display.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fcoeadm_display.c b/fcoeadm_display.c
index cc8f4fe..585ecfa 100644
--- a/fcoeadm_display.c
+++ b/fcoeadm_display.c
@@ -476,7 +476,7 @@ static void scan_device_map(char *rport, enum disp_style style)
static void show_port_stats_header(const char *ifname, int interval)
{
printf("\n");
- printf("%-7s interval: %-2d Err Inv "
+ printf("%-15s interval: %-2d Err Inv "
"IvTx Link Cntl Input Input Output Output\n",
ifname, interval);
printf("Seconds TxFrames TxBytes RxFrames RxBytes "
@@ -921,7 +921,7 @@ static void
print_interface_fcoe_lesb_stats_header(const char *ifname, int interval)
{
printf("\n");
- printf("%-7s interval: %-2d\n", ifname, interval);
+ printf("%-15s interval: %-2d\n", ifname, interval);
printf("LinkFail VLinkFail MissFKA SymbErr ErrBlkCnt FCSErrCnt\n");
printf("-------- --------- ------- ------- --------- ---------\n");
}
--
2.33.0

View File

@ -1,19 +1,19 @@
Name: fcoe-utils
Version: 1.0.33
Release: 1
Release: 5
Summary: Fibre Channel over Ethernet utilities
License: GPLv2
URL: https://github.com/morbidrsa/fcoe-utils
Source0: https://github.com/morbidrsa/fcoe-utils/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: quickstart.txt
Source2: fcoe.service
Source3: fcoe.config
Patch0: backport-00-Revert_Make_gcc_compiler_happy_about_ifname_string.patch
Patch1: backport-01-fix_VLAN_device_name_overflow_check.patch
Patch2: backport-02-string_op_truncation_format_trauncation.patch
Patch3: backport-03-use-of-uninitialized-values-detected-during-LTO.patch
#This patch refer to ubuntu's version
Patch4: backport-Fix-build-error-to-change-char-type.patch
Patch5: backport-handle-NIC-names-longer-than-7-characters.patch
Patch6: bachport-Fix-GCC-12-warning.patch
BuildRequires: autoconf automake libpciaccess-devel libtool lldpad-devel systemd
Requires: lldpad iproute device-mapper-multipath
@ -38,15 +38,10 @@ cp -v %{SOURCE1} quickstart.txt
%install
%make_install
rm -rf %{buildroot}/etc/init.d
install -d %{buildroot}%{_sysconfdir}/sysconfig %{buildroot}%{_unitdir}
rm -f %{buildroot}%{_unitdir}/*
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/fcoe
install -d %{buildroot}%{_libexecdir}/fcoe
for file in contrib/*.sh debug/*sh
do install -m 755 ${file} %{buildroot}%{_libexecdir}/fcoe/
done
rm -f %{buildroot}/%{_sysconfdir}/fcoe/config
%post
%systemd_post fcoe.service
@ -61,8 +56,9 @@ rm -f %{buildroot}/%{_sysconfdir}/fcoe/config
%defattr(-,root,root)
%doc COPYING
%config(noreplace) %{_sysconfdir}/fcoe/cfg-ethx
%config(noreplace) %{_sysconfdir}/sysconfig/fcoe
%config(noreplace) %{_sysconfdir}/fcoe/config
%{_unitdir}/fcoe.service
%{_unitdir}/fcoemon.socket
%{_sbindir}/*
%{_datadir}/bash-completion/completions/*
%{_libexecdir}/fcoe/
@ -73,6 +69,18 @@ rm -f %{buildroot}/%{_sysconfdir}/fcoe/config
%{_mandir}/man8/*
%changelog
* Fri Dec 30 2022 xulei <xulei@xfusion.com> - 1.0.33-5
- Backport upstream patch to fix GCC 12 warning.
* Thu Dec 29 2022 xulei <xulei@xfusion.com> - 1.0.33-4
- Backport upstream patch to handle NIC names lognger than 7 characters
* Wed Mar 03 2022 xu_ping <xuping33@huawei.com> - 1.0.33-3
- Backport upstream patch to avoid non-X86 build break.
* Wed Aug 25 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.0.33-2
- Fix fcoe.service start error
* Tue Mar 30 2021 lijingyuan <lijingyuan@huawei.com> - 1.0.33-1
- Type:requirement
- Id:NA

View File

@ -1,5 +0,0 @@
# All supported drivers listed here are loaded when service starts
SUPPORTED_DRIVERS="libfc fcoe bnx2fc"
# Add --debug to enable debug messages
FCOEMON_OPTS="--syslog"

View File

@ -1,12 +0,0 @@
[Unit]
Description=Open-FCoE Inititator.
After=syslog.target network.target lldpad.service
[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/fcoe
ExecStartPre=/sbin/modprobe -qa $SUPPORTED_DRIVERS
ExecStart=/usr/sbin/fcoemon $FCOEMON_OPTS
[Install]
WantedBy=multi-user.target