H5Pset_virtual_source_path


#1

The RFC for the virtual datasets indicates that you can set a path in which to search for the source files referenced in the virtual datasets, using the H5Pset_virtual_source_path function. It doesn't appear that this was implemented, as my header files don't resolve that symbol. Am I just missing something?

At the moment, I'm using just the base filename as the source file, and h5dump (1.10.0 patch 1) works fine if my working directory is the same as the VDS file (collocated with the source files), but fails to resolve the data if I dump it from a different directory.

What I would like to do is have the HDF library search in "." relative to the location of the VDS file.

Jarom Nelson


#2

Hi Jarom,

The function was not implemented. We will try to address the issue in the release later this year.

Elena

···

On Jul 13, 2016, at 11:37 AM, Nelson, Jarom <nelson99@llnl.gov<mailto:nelson99@llnl.gov>> wrote:

The RFC for the virtual datasets indicates that you can set a path in which to search for the source files referenced in the virtual datasets, using the H5Pset_virtual_source_path function. It doesn’t appear that this was implemented, as my header files don’t resolve that symbol. Am I just missing something?

At the moment, I’m using just the base filename as the source file, and h5dump (1.10.0 patch 1) works fine if my working directory is the same as the VDS file (collocated with the source files), but fails to resolve the data if I dump it from a different directory.

What I would like to do is have the HDF library search in “.” relative to the location of the VDS file.

Jarom Nelson

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5


#3

Thanks. A simple enough work-around in our application is to chdir into the directory containing the file when accessing the virtual dataset, and then chdir back out when done.

Jarom

···

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Elena Pourmal
Sent: Thursday, July 14, 2016 9:12 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] H5Pset_virtual_source_path

Hi Jarom,

The function was not implemented. We will try to address the issue in the release later this year.

Elena
On Jul 13, 2016, at 11:37 AM, Nelson, Jarom <nelson99@llnl.gov<mailto:nelson99@llnl.gov>> wrote:

The RFC for the virtual datasets indicates that you can set a path in which to search for the source files referenced in the virtual datasets, using the H5Pset_virtual_source_path function. It doesn’t appear that this was implemented, as my header files don’t resolve that symbol. Am I just missing something?

At the moment, I’m using just the base filename as the source file, and h5dump (1.10.0 patch 1) works fine if my working directory is the same as the VDS file (collocated with the source files), but fails to resolve the data if I dump it from a different directory.

What I would like to do is have the HDF library search in “.” relative to the location of the VDS file.

Jarom Nelson

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5


#4

Hi,

Are there any news in the above topic, i.e. implementation of H5Pset_virtual_source_path

Best regards,
Jan


#5

They implemented several fixes in HDF5 1.10.2 to address the issues described above.

About the release:

See the documentation on H5Pset_virtual_prefix, H5Pget_virtual_prefix, and the environment variable HDF5_VDS_PREFIX


#6

Great. I will look at them.

Thank you!