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

fix: sendfile: fall back to portable copy #8049

Merged
merged 1 commit into from Jun 27, 2023
Merged

Conversation

emillon
Copy link
Collaborator

@emillon emillon commented Jun 26, 2023

Fixes #8041.

When using sendfile to copy files on Linux, fall back to the portable version if it fails at runtime for some reason (NFS, etc).

@rgrinberg rgrinberg added this to the 3.9.0 milestone Jun 26, 2023
Fixes ocaml#8041

Signed-off-by: Etienne Millon <me@emillon.org>
@emillon emillon merged commit de45914 into ocaml:main Jun 27, 2023
20 of 21 checks passed
@emillon emillon deleted the fix-8041 branch June 27, 2023 08:09
emillon added a commit to emillon/dune that referenced this pull request Jun 27, 2023
Fixes ocaml#8041

Signed-off-by: Etienne Millon <me@emillon.org>
emillon added a commit to emillon/dune that referenced this pull request Jun 27, 2023
Fixes ocaml#8041

Signed-off-by: Etienne Millon <me@emillon.org>
emillon added a commit to emillon/dune that referenced this pull request Jun 27, 2023
Fixes ocaml#8041

Signed-off-by: Etienne Millon <me@emillon.org>
emillon added a commit that referenced this pull request Jun 27, 2023
* test: add repro for #8041 (#8048)

Signed-off-by: Etienne Millon <me@emillon.org>

* fix: sendfile: fall back to portable copy (#8049)

Fixes #8041

Signed-off-by: Etienne Millon <me@emillon.org>

---------

Signed-off-by: Etienne Millon <me@emillon.org>
emillon added a commit to emillon/opam-repository that referenced this pull request Jun 27, 2023
CHANGES:

- Fix deadlock on Windows (ocaml/dune#8044, @nojb)

- When using `sendfile` to copy files on Linux, fall back to the portable
  version if it fails at runtime for some reason (NFS, etc).
  (ocaml/dune#8049, fixes ocaml/dune#8041, @emillon)
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.

sendfile(): Invalid argument while installing
2 participants