diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2006-06-01 23:09:33 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2006-06-01 23:09:33 (GMT) |
commit | cf263fed86c667b2eb0f7c28cffd5c2f39a58388 (patch) | |
tree | 031a1128cd457afb84cb7109cddeee46aa62423e /testpar | |
parent | 188c766738c596cf7ff88af26b6017125426f05f (diff) | |
download | hdf5-cf263fed86c667b2eb0f7c28cffd5c2f39a58388.zip hdf5-cf263fed86c667b2eb0f7c28cffd5c2f39a58388.tar.gz hdf5-cf263fed86c667b2eb0f7c28cffd5c2f39a58388.tar.bz2 |
[svn-r12398] Purpose:
Bug fix.
Description:
Sometimes the parallel prefix is given in the form of nfs:/mnt/pfs which
if given to a non-MPIO VFD like the default H5Fcreate, it would fail.
Called h5_rmprefix which would return the non-prefix component
part of the file name which would be okay for the default H5Fcreate and
such.
Platforms tested:
Tested in heping parallel.
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/t_chunk_alloc.c | 4 | ||||
-rw-r--r-- | testpar/t_dset.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/testpar/t_chunk_alloc.c b/testpar/t_chunk_alloc.c index 88ab3ff..92fdd58 100644 --- a/testpar/t_chunk_alloc.c +++ b/testpar/t_chunk_alloc.c @@ -106,8 +106,8 @@ create_chunked_dataset(const char *filename, int nchunks, write_type write) VRFY((memspace >= 0), ""); /* Create a new file. If file exists its contents will be overwritten. */ - file_id = H5Fcreate (filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); - VRFY((file_id >= 0), ""); + file_id = H5Fcreate (h5_rmprefix(filename), H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); + VRFY((file_id >= 0), "H5Fcreate"); /* Modify dataset creation properties, i.e. enable chunking */ cparms = H5Pcreate (H5P_DATASET_CREATE); diff --git a/testpar/t_dset.c b/testpar/t_dset.c index 8c5e688..6f52c3e 100644 --- a/testpar/t_dset.c +++ b/testpar/t_dset.c @@ -2130,7 +2130,7 @@ compress_readAll(void) hsize_t chunk_dim; /* Chunk dimensions */ /* Create the file */ - fid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); + fid = H5Fcreate(h5_rmprefix(filename), H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); VRFY((fid > 0), "H5Fcreate succeeded"); /* Create property list for chunking and compression */ |