Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement file space strategies. #618

Merged
merged 6 commits into from Nov 2, 2022
Merged

Implement file space strategies. #618

merged 6 commits into from Nov 2, 2022

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Oct 14, 2022

Implements support for the different file space strategies:
https://portal.hdfgroup.org/display/HDF5/H5P_SET_FILE_SPACE_STRATEGY
https://portal.hdfgroup.org/display/HDF5/H5P_SET_FILE_SPACE_PAGE_SIZE

including paged allocation with configurable page size. Since both are "file creation properties". This MR also includes a new ctor for File which enables creating files specifying both creation and access properties.

@1uc 1uc requested review from alkino and matz-e and removed request for alkino October 14, 2022 15:14
include/highfive/H5File.hpp Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Oct 14, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@a17569a). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #618   +/-   ##
=========================================
  Coverage          ?   79.19%           
=========================================
  Files             ?       65           
  Lines             ?     3609           
  Branches          ?        0           
=========================================
  Hits              ?     2858           
  Misses            ?      751           
  Partials          ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@1uc
Copy link
Collaborator Author

1uc commented Oct 14, 2022

One thing to consider is if we want to start adding more and more methods to File, e.g. File::getFileSpacePageSize(). Instead one could pursue a strategy that allows reading/extracting values from property lists.

include/highfive/H5File.hpp Outdated Show resolved Hide resolved
include/highfive/H5PropertyList.hpp Outdated Show resolved Hide resolved
include/highfive/bits/H5File_misc.hpp Outdated Show resolved Hide resolved
matz-e
matz-e previously approved these changes Oct 17, 2022
include/highfive/H5PropertyList.hpp Outdated Show resolved Hide resolved
include/highfive/H5PropertyList.hpp Outdated Show resolved Hide resolved
include/highfive/bits/H5File_misc.hpp Outdated Show resolved Hide resolved
Co-authored-by: Matthias Wolf <matthias.wolf@epfl.ch>
@1uc 1uc merged commit 805f0e1 into master Nov 2, 2022
@1uc 1uc deleted the add-paged-allocation branch November 2, 2022 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants