summaryrefslogtreecommitdiffstats
path: root/src/H5Dint.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-08-13 16:39:21 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-08-13 16:39:21 (GMT)
commit51e16157c29eae46c391e896ed54de8e02ffdfea (patch)
tree0341af144cc2fabc69cee4e039e6d13a58860d08 /src/H5Dint.c
parent07106823b4792cdb81bb8b6bf9b56af3e919781b (diff)
downloadhdf5-51e16157c29eae46c391e896ed54de8e02ffdfea.zip
hdf5-51e16157c29eae46c391e896ed54de8e02ffdfea.tar.gz
hdf5-51e16157c29eae46c391e896ed54de8e02ffdfea.tar.bz2
[svn-r27504] Change comments/code around to reflect decision to have virtual datasets always
return TRUE when their is_alloc function is called. Tested: ummon
Diffstat (limited to 'src/H5Dint.c')
-rw-r--r--src/H5Dint.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c
index 657f893..dd37beb 100644
--- a/src/H5Dint.c
+++ b/src/H5Dint.c
@@ -1827,7 +1827,12 @@ H5D__alloc_storage(const H5D_t *dset, hid_t dxpl_id, H5D_time_alloc_t time_alloc
break;
case H5D_VIRTUAL:
- /* No-op for now VDSINC */
+ /* No-op, as the raw data is stored elsewhere and the global
+ * heap object containing the mapping information is created
+ * when the layout message is encoded. We may wish to move the
+ * creation of the global heap object here at some point, but we
+ * will have to make sure is it always created before the
+ * dataset is closed. */
break;
case H5D_LAYOUT_ERROR:
@@ -1950,7 +1955,7 @@ H5D__init_storage(const H5D_t *dset, hbool_t full_overwrite, hsize_t old_dim[],
} /* end block */
case H5D_VIRTUAL:
- /* No-op for now VDSINC */
+ /* No-op, as the raw data is stored elsewhere */
case H5D_LAYOUT_ERROR:
case H5D_NLAYOUTS:
@@ -2009,7 +2014,8 @@ H5D__get_storage_size(H5D_t *dset, hid_t dxpl_id, hsize_t *storage_size)
break;
case H5D_VIRTUAL:
- /* Just set to 0 until private data is implemented VDSINC */
+ /* Just set to 0, as virtual datasets do not actually store raw data
+ */
*storage_size = 0;
break;