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

nbd.c: use off_t instead of off64_t with _FILE_OFFSET_BITS=64 #1164

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

chris2511
Copy link
Contributor

@chris2511 chris2511 commented Jun 16, 2023

With _FILE_OFFSET_BITS=64 there is no "off64_t", but off_t is 64 bit long: https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html#index-_005fFILE_005fOFFSET_005fBITS

While glibc defines the off64_t anyway, musl is more restrictive and only provides the "off64_t" when _LARGEFILE64_SOURCE is defined.

Signed-off-by: Christian Hohnstaedt christian@hohnstaedt.de

With _FILE_OFFSET_BITS=64 there is no "off64_t", but off_t is 64 bit long:
https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html#index-_005fFILE_005fOFFSET_005fBITS

While glibc defines the off64_t anyway, musl is more restrictive and only
provides the "off64_t" when _LARGEFILE64_SOURCE is defined.

Signed-off-by: Christian Hohnstaedt <christian@hohnstaedt.de>
@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (6dc16cf) 80.20% compared to head (623318f) 80.20%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1164   +/-   ##
=======================================
  Coverage   80.20%   80.20%           
=======================================
  Files          58       58           
  Lines       17997    17997           
=======================================
  Hits        14435    14435           
  Misses       3562     3562           
Impacted Files Coverage Δ
include/nbd.h 100.00% <ø> (ø)
src/nbd.c 34.64% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jluebbe jluebbe self-requested a review June 16, 2023 12:43
@jluebbe jluebbe self-assigned this Jun 16, 2023
@jluebbe jluebbe merged commit 51be43d into rauc:master Jun 16, 2023
24 checks passed
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

2 participants