{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreicodluco5mcoxejbsr2o6dheiehuq3o62mbvadpbrc5tvpatofyly",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mhwozrwa26t2"
  },
  "path": "/t/idea-add-an-option-to-set-the-mode-to-fs-copy/24080#post_17",
  "publishedAt": "2026-03-25T22:12:37.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "Note that the linux `kernel_copy` module already tries all of them where appropriate. `copy_file_range`, `sendfile`, `splice`, userspace copy, in that order.\n\nAlas, we had to disable it in the quite useful file->socket case, due to the caveats you can find in the sendfile manpage.",
  "title": "Idea: Add an option to set the mode to fs::copy"
}