# H5Pset\_virtual\_source\_path

**URL:** <https://forum.hdfgroup.org/t/h5pset-virtual-source-path/3820>\
**Category:** Hdf-forum archives\
**Created:** [July 13, 2016, 4:37pm UTC](https://forum.hdfgroup.org/t/h5pset-virtual-source-path/3820 "2016-07-13T16:37:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nelson99](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/nelson99/32/878_2.png) [@nelson99](https://forum.hdfgroup.org/u/nelson99)\
**Post date:** [July 13, 2016, 4:37pm UTC](https://forum.hdfgroup.org/t/h5pset-virtual-source-path/3820/1 "2016-07-13T16:37:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![epourmal](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/e/c67d28/32.png) [@epourmal](https://forum.hdfgroup.org/u/epourmal)\
**Post date:** [July 15, 2016, 4:12am UTC](https://forum.hdfgroup.org/t/h5pset-virtual-source-path/3820/2 "2016-07-15T04:12:08Z")

</div>

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)\<[mailto: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)\<[mailto:Hdf-forum@lists.hdfgroup.org](mailto:Hdf-forum@lists.hdfgroup.org)\>  
> [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> Twitter: [https://twitter.com/hdf5](https://twitter.com/hdf5)

---

<div class="post-metadata">

**Author:** ![nelson99](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/nelson99/32/878_2.png) [@nelson99](https://forum.hdfgroup.org/u/nelson99)\
**Post date:** [July 19, 2016, 6:37pm UTC](https://forum.hdfgroup.org/t/h5pset-virtual-source-path/3820/3 "2016-07-19T18:37:39Z")

</div>

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](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)\<[mailto: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)\<[mailto:Hdf-forum@lists.hdfgroup.org](mailto:Hdf-forum@lists.hdfgroup.org)\>  
> [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> Twitter: [https://twitter.com/hdf5](https://twitter.com/hdf5)

---

<div class="post-metadata">

**Author:** ![jan.kotanski](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@jan.kotanski](https://forum.hdfgroup.org/u/jan.kotanski)\
**Post date:** [September 16, 2019, 2:46pm UTC](https://forum.hdfgroup.org/t/h5pset-virtual-source-path/3820/4 "2019-09-16T14:46:05Z")

</div>

Hi,

Are there any news in the above topic, i.e. implementation of H5Pset\_virtual\_source\_path

Best regards,  
Jan

---

<div class="post-metadata">

**Author:** ![nelson99](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/nelson99/32/878_2.png) [@nelson99](https://forum.hdfgroup.org/u/nelson99)\
**Post date:** [September 16, 2019, 7:31pm UTC](https://forum.hdfgroup.org/t/h5pset-virtual-source-path/3820/5 "2019-09-16T19:31:46Z")

</div>

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

About the release:

> **[Why should I care about the HDF5 1.10.2 Release? - The HDF Group](https://www.hdfgroup.org/2018/04/why-should-i-care-about-the-hdf5-1-10-2-release/)**
>
> On March 30th, we announced the release of HDF5 version 1.10.2. With this release, we accomplished all the tasks planned for the major HDF5 1.10 series. It is time for applications to start migrating (or start their migration) from HDF5 1.8 to the...

See the documentation on H5Pset\_virtual\_prefix, H5Pget\_virtual\_prefix, and the environment variable HDF5\_VDS\_PREFIX

---

<div class="post-metadata">

**Author:** ![jan.kotanski](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@jan.kotanski](https://forum.hdfgroup.org/u/jan.kotanski)\
**Post date:** [September 17, 2019, 1:29pm UTC](https://forum.hdfgroup.org/t/h5pset-virtual-source-path/3820/6 "2019-09-17T13:29:08Z")

</div>

Great. I will look at them.

Thank you!
