summaryrefslogtreecommitdiffstats
path: root/perform/pio_perf.h
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-05-13 19:55:33 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-05-13 19:55:33 (GMT)
commitd07e0dd9a3d98981ba49c1a39998faf7cb522075 (patch)
treef9d03b17c9c1b722c8145cd3b7cdbc8f2cb4386b /perform/pio_perf.h
parent4793f81ae10d65a681ce440ce072b510b1ec8d92 (diff)
downloadhdf5-d07e0dd9a3d98981ba49c1a39998faf7cb522075.zip
hdf5-d07e0dd9a3d98981ba49c1a39998faf7cb522075.tar.gz
hdf5-d07e0dd9a3d98981ba49c1a39998faf7cb522075.tar.bz2
[svn-r5407] Purpose:
Bug fix Description: Was not able to handle data size (file size) larger than 32bits. Was using long, which is only 4 bytes big in SP, thus overflowing into negative when trying to address 2GB or larger. Solution: Changed those variables involved in file size/offset calculation to type off_t. (If a certain system/compiler has off_t defined as 4 bytes, it can't write to file size larger than 2GB anyway.) Note that the lseek of SP with -D_LARGE_FILE still fails for offset larger than 2GB (works for 2GB). That has to be fixed soon. Platforms tested: burrwhite (linux 2.4) and modi4 parallel.
Diffstat (limited to 'perform/pio_perf.h')
-rw-r--r--perform/pio_perf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perform/pio_perf.h b/perform/pio_perf.h
index 12811e3..d14c419 100644
--- a/perform/pio_perf.h
+++ b/perform/pio_perf.h
@@ -24,7 +24,7 @@ typedef struct parameters_ {
long num_dsets; /* Number of datasets to create */
long num_elmts; /* Number of native ints in each dset */
int num_iters; /* Number of times to loop doing the IO */
- long buf_size; /* Buffer size */
+ size_t buf_size; /* Buffer size */
} parameters;
typedef struct results_ {