summaryrefslogtreecommitdiffstats
path: root/src/H5Doh.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-02-20 21:53:35 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-02-20 21:53:35 (GMT)
commit88b7d8d34cd1c645c22197d440115c05435c816a (patch)
treea9bd6c3e425bbf6a8a5e25094b2c0d07e2b8b25b /src/H5Doh.c
parenta5460b731d7f98296a8f76fcca293e6cc9521eb1 (diff)
downloadhdf5-88b7d8d34cd1c645c22197d440115c05435c816a.zip
hdf5-88b7d8d34cd1c645c22197d440115c05435c816a.tar.gz
hdf5-88b7d8d34cd1c645c22197d440115c05435c816a.tar.bz2
[svn-r26261] Commit working but incomplete prototype. Does not perform I/O.
Tested: ummon
Diffstat (limited to 'src/H5Doh.c')
-rw-r--r--src/H5Doh.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/H5Doh.c b/src/H5Doh.c
index a688fe7..39a270f 100644
--- a/src/H5Doh.c
+++ b/src/H5Doh.c
@@ -399,7 +399,16 @@ H5O__dset_bh_info(H5F_t *f, hid_t dxpl_id, H5O_t *oh, H5_ih_info_t *bh_info)
HGOTO_ERROR(H5E_OHDR, H5E_CANTGET, FAIL, "can't determine chunked dataset btree info")
} /* end if */
else if(layout.type == H5D_VIRTUAL && H5D__virtual_is_space_alloc(&layout.storage)) {
- HDassert(0 && "Not yet implemented...");//VDSINC
+ size_t virtual_heap_size;
+ /* Need to write a test for this. No assert here for now because the
+ * code is reached by h5_verify_cached_stabs() but it is not properly
+ * tested. VDSINC */
+ /* Get size of global heap object for virtual dataset */
+ if(H5HG_get_obj_size(f, dxpl_id, &(layout.storage.u.virt.serial_list_hobjid), &virtual_heap_size) < 0)
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "can't get global heap size for virtual dataset mapping")
+
+ /* Return heap size */
+ bh_info->heap_size = (hsize_t)virtual_heap_size;
} /* end if */
/* Check for External File List message in the object header */