source: trunk/dports/benchmarks/bonniexx/files/patch-bonnie++.cpp

Last change on this file was 87444, checked in by takanori@…, 9 years ago

bonniexx: version 1.96 (#32070)

File size: 1.3 KB
Line 
1--- bonnie++.cpp.orig   2009-07-03 11:38:14.000000000 +0900
2+++ bonnie++.cpp        2011-11-22 08:42:45.000000000 +0900
3@@ -294,11 +294,7 @@
4       {
5         char *sbuf = _strdup(optarg);
6         char *size = strtok(sbuf, ":");
7-#ifdef _LARGEFILE64_SOURCE
8         file_size = size_from_str(size, "gt");
9-#else
10-        file_size = size_from_str(size, "g");
11-#endif
12         size = strtok(NULL, "");
13         if(size)
14         {
15@@ -384,15 +380,6 @@
16     if(file_size % 1024 > 512)
17       file_size = file_size + 1024 - (file_size % 1024);
18   }
19-#ifndef _LARGEFILE64_SOURCE
20-  if(file_size == 2048)
21-    file_size = 2047;
22-  if(file_size > 2048)
23-  {
24-    fprintf(stderr, "Large File Support not present, can't do %dM.\n", file_size);
25-    usage();
26-  }
27-#endif
28   globals.byte_io_size = __min(file_size, globals.byte_io_size);
29   globals.byte_io_size = __max(0, globals.byte_io_size);
30 
31@@ -465,14 +452,6 @@
32      && (directory_max_size < directory_min_size || directory_max_size < 0
33      || directory_min_size < 0) )
34     usage();
35-#ifndef _LARGEFILE64_SOURCE
36-  if(file_size > (1 << (31 - 20 + globals.io_chunk_bits)) )
37-  {
38-    fprintf(stderr
39-   , "The small chunk size and large IO size make this test impossible in 32bit.\n");
40-    usage();
41-  }
42-#endif
43   if(file_size && globals.ram && (file_size * concurrency) < (globals.ram * 2) )
44   {
45     fprintf(stderr
Note: See TracBrowser for help on using the repository browser.