Provide an API for controling file locking

Hi,

Regarding file locking (HDF5_USE_FILE_LOCKING), we have need for opening some files without locking for reading and other files with locking for writing at the same time from the same process.
We are accessing libhdf5 throguh h5py.

It is possible to do so by changing the HDF5_USE_FILE_LOCKING environment variable before each file opening, but that would be cleaner to do that through the API.

Wouldn’t that makes sense to extend the API so toggling file locking can be provided e.g., as and argument when opening the file?

Best,

2 Likes

In case someone is looking for this, there is now https://portal.hdfgroup.org/display/HDF5/H5P_SET_FILE_LOCKING
https://portal.hdfgroup.org/display/HDF5/H5P_GET_FILE_LOCKING

Please use the new documents instead:
H5Pset_file_locking
H5Pget_file_locking

1 Like

I have the above URL pattern memorized. It’s not really possible to do this with the new documentation.

It would be great if the html anchor tags in the URL for the new documentaiton were something other than “title72” and “title27” though and if the page at https://docs.hdfgroup.org/ actually let you navigate into the documentation.

1 Like

We can work on the Doxygen URL scheme, but the portal RM docs are no longer maintained and will go away soon. We are moving to a single source of RM documentation and that will be Doxygen and will live with the code.

I’ll continue this conversation over in New vs Old Documentation URLs . I think that patch may help.