Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 231715 Details for
Bug 320051
bonnie++ 1.96 ebuild for OS X Prefix
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Disable LARGEFILE64 checks
patch-bonnie++.cpp (text/plain), 1.31 KB, created by
Justin
on 2010-05-16 21:13:17 UTC
(
hide
)
Description:
Disable LARGEFILE64 checks
Filename:
MIME Type:
Creator:
Justin
Created:
2010-05-16 21:13:17 UTC
Size:
1.31 KB
patch
obsolete
>--- 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 320051
:
231711
|
231713
| 231715 |
231717
|
231721
|
231723