Link creation order not stored for file
- Dominant language
- C
- Stars
- 988
- Forks
- 355
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 12
Description
**Bug**
The information whether a file was created with `h5p_crt_order_indexed` and `h5p_crt_order_tracked` is not (or only partially) stored. This means that `H5Pget_link_creation_order` does not report those values to be set if a file is re-opened. For groups, the information is stored. Note that HDFView still sorts the data in the file/base_group if it was created with order_tracked/order_indexed but in agreement with the Fortran library reports that order was not tracked.
**Expected behavior**
I would expect the same behavior as for groups: If a file was created with with `h5p_crt_order_indexed` and `h5p_crt_order_tracked`, this information should be stored and `H5Pget_link_creation_order` reports that the flags are set when opening the file again later.
**Platform (please complete the following information)**
- HDF5 version: 1.14.5
- System: Arch linux (current)
- Compiler: GCC 14.2.1.
- Build: Official package (mix of autotool/CMake)
- Any configure options you specified: see https://archlinux.org/packages/extra/x86_64/hdf5-openmpi
- MPI library and version (parallel HDF5): openMPI
**Additional context**
Initially, I thought that this was an HDFView issue and opened https://github.com/HDFGroup/hdfview/issues/347
***Code to Reproduce***
[sort_file_f90.txt](https://github.com/user-attachments/files/18165231/sort_file_f90.txt): run to create 2 files
[print_file_py.txt](https://github.com/user-attachments/files/18165234/print_file_py.txt): print order in Python
[get_status_file_f90.txt](https://github.com/user-attachments/files/18165233/get_status_file_f90.txt): get status in Fortran
[sort_group_f90.txt](https://github.com/user-attachments/files/18165232/sort_group_f90.txt): run to create 2 groups
[print_group_py.txt](https://github.com/user-attachments/files/18165236/print_group_py.txt): print order in Python
[get_status_group_f90.txt](https://github.com/user-attachments/files/18165235/get_status_group_f90.txt): get status in Fortran
Contributor guide
Assessment
This issue has not been assessed yet.