Skip to contentSkip to conversation

netperf: set _FILE_OFFSET_BITS to 64 to support large files

PATCH Superseded [email protected] 3 participants 4 messages Sep 26, 2013 – Oct 9, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netperf: set _FILE_OFFSET_BITS to 64 to support large files

From: Ting Liu <[email protected]>

Without this patch, netperf2.6 can only support files smaller than 2GB with TCP_SENDFILE item.

---
 .../recipes-support/netperf/netperf_2.6.0.bb       |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
meta-networking/recipes-support/netperf/netperf_2.6.0.bb +4 -0
index eda7859..1d9ba20 100644
@@ -23,6 +23,10 @@ S = "${WORKDIR}/netperf-${PV}"
 # cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros
 CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
 
+# set the "_FILE_OFFSET_BITS" preprocessor symbol to 64 to support files 
+# larger than 2GB
+CFLAGS_append = " -D_FILE_OFFSET_BITS=64"
+
 # autotools.bbclass attends to include m4 files with path depth <= 2 by
 # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
 do_configure_prepend() {
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 7 lines · On Thu, Sep 26, 2013 at 6:20 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

Without this patch, netperf2.6 can only support files smaller than 2GB with TCP_SENDFILE item.

Please make it conditional as:

${@base_contains('DISTRO_FEATURES', 'largefile',
'D_FILE_OFFSET_BITS=64', '', d)}

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw
In reply to [email protected]
Quoted 16 lines · On Thu, Sep 26, 2013 at 05:20:31PM +0800, [email protected] wrote:

From: Ting Liu <[email protected]>

Without this patch, netperf2.6 can only support files smaller than 2GB with TCP_SENDFILE item.

---
 .../recipes-support/netperf/netperf_2.6.0.bb       |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
meta-networking/recipes-support/netperf/netperf_2.6.0.bb +0 -0
index eda7859..1d9ba20 100644

meta-networking/recipes-support/netperf/netperf_2.6.0.bb S = "${WORKDIR}/netperf-${PV}" · line 29

Quoted 7 lines
meta-networking/recipes-support/netperf/netperf_2.6.0.bb +4 -0
@@ -23,6 +23,10 @@ S = "${WORKDIR}/netperf-${PV}"
 # cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros
 CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
 
+# set the "_FILE_OFFSET_BITS" preprocessor symbol to 64 to support files 
+# larger than 2GB
+CFLAGS_append = " -D_FILE_OFFSET_BITS=64"
+

http://patchwork.openembedded.org/patch/57331/
This patch is superseded, right?

Please update as Otavio requested.

Quoted 11 lines
meta-networking/recipes-support/netperf/netperf_2.6.0.bb +0 -0
 # autotools.bbclass attends to include m4 files with path depth <= 2 by
 # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
 do_configure_prepend() {
Signature · 7 lines
1.7.3.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
Quoted 30 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Saturday, October 05, 2013 7:27 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] netperf: set _FILE_OFFSET_BITS to 64 to support large files

Quoted 20 lines · On Thu, Sep 26, 2013 at 05:20:31PM +0800, [email protected] wrote:

From: Ting Liu <[email protected]>

Without this patch, netperf2.6 can only support files smaller than 2GB with TCP_SENDFILE item.

---
 .../recipes-support/netperf/netperf_2.6.0.bb       |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
meta-networking/recipes-support/netperf/netperf_2.6.0.bb +0 -0
index eda7859..1d9ba20 100644
@@ -23,6 +23,10 @@ S = "${WORKDIR}/netperf-${PV}"
 # cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_

macros CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"

Quoted 6 lines

meta-networking/recipes-support/netperf/netperf_2.6.0.bb

Quoted 3 lines
meta-networking/recipes-support/netperf/netperf_2.6.0.bb +3 -0
+# set the "_FILE_OFFSET_BITS" preprocessor symbol to 64 to support
+files # larger than 2GB CFLAGS_append = " -D_FILE_OFFSET_BITS=64"
+

http://patchwork.openembedded.org/patch/57331/
This patch is superseded, right?

Yes, it is superseded.

Quoted 2 lines

Please update as Otavio requested.

I have sent the v2 patch. Thanks for your review.

Quoted 15 lines
Quoted 8 lines
 # autotools.bbclass attends to include m4 files with path depth <= 2
by  # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
 do_configure_prepend() {
--
1.7.3.4
Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]