tags 357712 + patch
thanks
Thanks to upstream author, Don Capps, for this patch.
Index: src/current/iozone.c
===================================================================
RCS file: /home/steve/lib/cvs/debian/iozone3/src/current/iozone.c,v
retrieving revision 1.1.1.4
diff -u -b -B -r1.1.1.4 iozone.c
--- src/current/iozone.c 14 Mar 2006 13:21:15 -0000 1.1.1.4
+++ src/current/iozone.c 31 Mar 2006 01:53:13 -0000
@@ -2700,16 +2700,6 @@
#endif
exit(22);
}
- if (reclen > (long long)(kilobytes64*1024)) {
-#ifdef NO_PRINT_LLD
- printf("Error: record length %ld is greater than filesize %ld KB\n
",
- reclen,kilobytes64);
-#else
- printf("Error: record length %lld is greater than filesize %lld
KB\n ",
- reclen,kilobytes64);
-#endif
- exit(23);
- }
/* Only bzero or fill that which you will use. The buffer is very large
*/
if(verify )
{
@@ -3053,6 +3043,17 @@
if(nflag)
min_file_size = minimum_file_size;
+ if (min_rec_size > (long long)(min_file_size*1024)) {
+#ifdef NO_PRINT_LLD
+ printf("Error: record length %ld is greater than filesize %ld KB\n
",
+ min_rec_size,min_file_size);
+#else
+ printf("Error: record length %lld is greater than filesize %lld
KB\n ",
+ min_rec_size,min_file_size);
+#endif
+ exit(23);
+ }
+
if(NOCROSSflag) xover = max_file_size;
init_file_sizes(min_file_size, max_file_size);
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]