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

Last change on this file since 20756 was 20756, checked in by markd@…, 14 years ago

Closes #2181. Update to 1.93c.

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