mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r12396] 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.
This commit is contained in:
parent
cca4e8351b
commit
849a6c299d
@ -106,8 +106,9 @@ 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);
|
||||
|
@ -2122,7 +2122,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 */
|
||||
|
Loading…
Reference in New Issue
Block a user