How to check if a file is in SWMR writing mode?


#1

Is there a simple way to check if a given (open) file is already in SWMR writing mode ?

I now that H5F_START_SWMR_WRITE checks this feature among other things but is there an easier way to only check if SWMR is enabled or not ?

Thanks


#2

I think H5Fget_intent is what you want.

https://portal.hdfgroup.org/display/HDF5/H5F_GET_INTENT