Skip to content

Update to HDF5 2.0#197

Draft
Bisaloo wants to merge 9 commits intodevelfrom
upgrade-rhdf5-version
Draft

Update to HDF5 2.0#197
Bisaloo wants to merge 9 commits intodevelfrom
upgrade-rhdf5-version

Conversation

@Bisaloo
Copy link
Member

@Bisaloo Bisaloo commented Feb 17, 2026

No description provided.

@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 82.05128% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.24%. Comparing base (4558af2) to head (7c1d05a).

Files with missing lines Patch % Lines
R/Deprecated.R 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #197      +/-   ##
==========================================
- Coverage   77.32%   77.24%   -0.09%     
==========================================
  Files          70       71       +1     
  Lines        6544     6433     -111     
==========================================
- Hits         5060     4969      -91     
+ Misses       1484     1464      -20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines 4 to 23

SEXP Rval;
const char *file_name = CHAR(STRING_ELT(_file_name, 0));
int fd = -1;
int lk = -1;

/* create the temporary file */
fd = HDopen(file_name, O_RDWR | O_CREAT | O_TRUNC, 0666);
H5FD_t* fd = H5FDopen(file_name, H5F_ACC_CREAT, H5P_DEFAULT, /* maxaddr, max 1 MB file? */ 1000000);

/* try to lock file */
lk = HDflock(fd, LOCK_EX | LOCK_NB);
herr_t lk = H5FDlock(fd, /* rw = */ 1);

/* unlock so we can remove */
HDflock(fd, LOCK_UN);
H5FDunlock(fd);

/* close */
HDclose(fd);
H5FDclose(fd);

/* return value of lock attempt */
PROTECT(Rval = allocVector(INTSXP, 1));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can use H5Pget_file_locking() in HDF5 >= 1.12.1 for this.

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.

2 participants