summaryrefslogtreecommitdiffstats
path: root/src/H5Pdcpl.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-03-17 20:02:05 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-03-17 20:02:05 (GMT)
commit424826d0dd492cb734e166b7154e2db456f6a13a (patch)
tree71d55208bd8fb39c7d48bbe877caadb7902df1c8 /src/H5Pdcpl.c
parent66a9948e65001a47f984c8f76a53f46faf9929ec (diff)
downloadhdf5-424826d0dd492cb734e166b7154e2db456f6a13a.zip
hdf5-424826d0dd492cb734e166b7154e2db456f6a13a.tar.gz
hdf5-424826d0dd492cb734e166b7154e2db456f6a13a.tar.bz2
[svn-r26469] INCOMPLETE, UNWORKING CODE
Commit progress through 3/17/15
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r--src/H5Pdcpl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c
index 9c5833d..3739be6 100644
--- a/src/H5Pdcpl.c
+++ b/src/H5Pdcpl.c
@@ -1615,7 +1615,8 @@ H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name,
if(NULL == (src_space = (H5S_t *)H5I_object_verify(src_space_id, H5I_DATASPACE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace")
- //VDSINC add check for overlaping virtual spaces
+ //VDSINC add check for overlapping virtual spaces and same number of
+ // elements in vspace and src_space
#ifndef H5_HAVE_C99_DESIGNATED_INITIALIZER
/* If the compiler doesn't support C99 designated initializers, check if
@@ -1668,6 +1669,8 @@ H5Pset_virtual(hid_t dcpl_id, hid_t vspace_id, const char *src_file_name,
HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "unable to copy source selection")
if(NULL == (layout.storage.u.virt.list[layout.storage.u.virt.list_nused].virtual_select = H5S_copy(vspace, FALSE, TRUE)))
HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "unable to copy virtual selection")
+ layout.storage.u.virt.list[layout.storage.u.virt.list_nused].source_space_status = H5O_VIRTUAL_STATUS_USER;
+ layout.storage.u.virt.list[layout.storage.u.virt.list_nused].virtual_space_status = H5O_VIRTUAL_STATUS_USER;
layout.storage.u.virt.list_nused++;
adding_entry = FALSE;
@@ -1699,7 +1702,7 @@ done:
FUNC_LEAVE_API(ret_value)
} /* end H5Pset_virtual() */
-
+#error
/*-------------------------------------------------------------------------
* Function: H5Pget_virtual_count