I am experiencing an issue when trying to change to default file space management strategy. What I would like to do is to track free space between opening and closing of my files and thus re-using this free space more effectively. I try to achieve this by
// Prepare the file space management strategy
hbool_t persist = 1;
H5F_fspace_strategy_t fileSpaceType = H5F_FSPACE_STRATEGY_FSM_AGGR;
hid_t fileCreationPropertyListIdentifier = H5Pcreate(H5P_FILE_CREATE);
fileSpaceType, persist, H5P_DEFAULT);
fp = H5Fcreate(fname, facc, fileCreationPropertyListIdentifier, H5P_DEFAULT);
I have tested this and the free space is tracked and re-used, just like expected. So far, so good. The problem appears when I try to open my result files. When I use HDFView 2.11, I get the error message
java.io.IOException: Failed to open file
and when I try to open the files with command line tools, I get errors like
h5dump error: unable to open file.
I get this error even when I choose the default file space management strategy ( fileSpaceType = H5F_FSPACE_STRATEGY_AGGR, persist = 0 ). Has someone experienced the same issue or maybe noticed something I do wrong in the code above?
Thanks for taking your time to help. With kind regards,