aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/bonnie++
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2003-12-21 11:19:28 +0800
committerpetef <petef@FreeBSD.org>2003-12-21 11:19:28 +0800
commitcba895d6717bba2a3bcca94ec5c84b4bedb81ca1 (patch)
treeaa8538ef5d6d924417adc68870ef3c63a883f804 /benchmarks/bonnie++
parent518f22bf3da0bd664a4ff1404747417102792393 (diff)
downloadfreebsd-ports-graphics-cba895d6717bba2a3bcca94ec5c84b4bedb81ca1.tar.gz
freebsd-ports-graphics-cba895d6717bba2a3bcca94ec5c84b4bedb81ca1.tar.zst
freebsd-ports-graphics-cba895d6717bba2a3bcca94ec5c84b4bedb81ca1.zip
- support large files
- bump PORTREVISION PR: 56011 Submitted by: Vivek Khera <vivek@khera.org>
Diffstat (limited to 'benchmarks/bonnie++')
-rw-r--r--benchmarks/bonnie++/Makefile1
-rw-r--r--benchmarks/bonnie++/files/patch-bonnie++.cpp47
2 files changed, 48 insertions, 0 deletions
diff --git a/benchmarks/bonnie++/Makefile b/benchmarks/bonnie++/Makefile
index d8115e21116..887a4bad816 100644
--- a/benchmarks/bonnie++/Makefile
+++ b/benchmarks/bonnie++/Makefile
@@ -8,6 +8,7 @@
PORTNAME= bonnie++
PORTVERSION= 1.93.03 # a=01, b=02, c=03, ..., z=26, etc...
+PORTREVISION= 1
CATEGORIES= benchmarks
MASTER_SITES= http://www.coker.com.au/bonnie++/experimental/
DISTNAME= ${PORTNAME}-1.93c
diff --git a/benchmarks/bonnie++/files/patch-bonnie++.cpp b/benchmarks/bonnie++/files/patch-bonnie++.cpp
new file mode 100644
index 00000000000..9d9f811bf8e
--- /dev/null
+++ b/benchmarks/bonnie++/files/patch-bonnie++.cpp
@@ -0,0 +1,47 @@
+$FreeBSD$
+
+--- bonnie++.cpp.orig Mon Aug 25 17:08:46 2003
++++ bonnie++.cpp Mon Aug 25 17:08:46 2003
+@@ -322,11 +322,7 @@
+ {
+ char *sbuf = _strdup(optarg);
+ char *size = strtok(sbuf, ":");
+-#ifdef _LARGEFILE64_SOURCE
+ file_size = size_from_str(size, "gt");
+-#else
+- file_size = size_from_str(size, "g");
+-#endif
+ size = strtok(NULL, "");
+ if(size)
+ {
+@@ -411,15 +407,6 @@
+ if(file_size % 1024 > 512)
+ file_size = file_size + 1024 - (file_size % 1024);
+ }
+-#ifndef _LARGEFILE64_SOURCE
+- if(file_size == 2048)
+- file_size = 2047;
+- if(file_size > 2048)
+- {
+- fprintf(stderr, "Large File Support not present, can't do %dM.\n", file_size);
+- usage();
+- }
+-#endif
+ globals.byte_io_size = __min(file_size, globals.byte_io_size);
+ globals.byte_io_size = __max(0, globals.byte_io_size);
+
+@@ -503,14 +490,6 @@
+ && (directory_max_size < directory_min_size || directory_max_size < 0
+ || directory_min_size < 0) )
+ usage();
+-#ifndef _LARGEFILE64_SOURCE
+- if(file_size > (1 << (31 - 20 + globals.io_chunk_bits)) )
+- {
+- fprintf(stderr
+- , "The small chunk size and large IO size make this test impossible in 32bit.\n");
+- usage();
+- }
+-#endif
+ if(file_size && globals.ram && (file_size * concurrency) < (globals.ram * 2) )
+ {
+ fprintf(stderr