summaryrefslogtreecommitdiffstats
path: root/src/H5Dvirtual.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-03-19 20:04:36 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-03-19 20:04:36 (GMT)
commit43dec53436614341f3597271603b90d41dac5ac2 (patch)
treeb057617d8483473d4e2ca4a71f7188cf5f47169c /src/H5Dvirtual.c
parent4cfe53284bb6c3f7f57ff70af6ceb7396683aaa4 (diff)
downloadhdf5-43dec53436614341f3597271603b90d41dac5ac2.zip
hdf5-43dec53436614341f3597271603b90d41dac5ac2.tar.gz
hdf5-43dec53436614341f3597271603b90d41dac5ac2.tar.bz2
[svn-r26482] Opening source files now reuses the flags from the virtual file.
Added tests for I/O on virtual dataset with source datasets in unopened files. Note there are still some code coverage assertions in the selection matching algorithm - if you hit these try taking them out. Note make check still fails in h5dump test (unrelated to this checkin). Tested: ummon
Diffstat (limited to 'src/H5Dvirtual.c')
-rw-r--r--src/H5Dvirtual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dvirtual.c b/src/H5Dvirtual.c
index 3d957a2..14efe42 100644
--- a/src/H5Dvirtual.c
+++ b/src/H5Dvirtual.c
@@ -213,7 +213,7 @@ H5D__virtual_open_source_dset(const H5D_t *vdset,
/* Check if we need to open the source file */
if(HDstrcmp(virtual_ent->source_file_name, ".")) {
/* Open the source file */
- if(NULL == (src_file = H5F_open(virtual_ent->source_file_name, H5F_ACC_RDONLY, H5P_FILE_CREATE_DEFAULT, H5P_FILE_ACCESS_DEFAULT, dxpl_id)))
+ if(NULL == (src_file = H5F_open(virtual_ent->source_file_name, H5F_INTENT(vdset->oloc.file) & H5F_ACC_RDWR, H5P_FILE_CREATE_DEFAULT, H5P_FILE_ACCESS_DEFAULT, dxpl_id)))
HGOTO_ERROR(H5E_DATASET, H5E_CANTOPENFILE, FAIL, "unable to open source file")
src_file_open = TRUE;
} /* end if */