Repository navigation
Add RSYNC_CONNECT_PROG support for module listings - #1086
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| while let Some(byte) = iter.next() { | ||
| if byte == b'%' { | ||
| match iter.next() { | ||
| Some(b'%') => rendered.push(b'%'), | ||
| Some(b'H') => rendered.extend_from_slice(host_bytes), | ||
| Some(other) => { | ||
| rendered.push(b'%'); | ||
| rendered.push(other); | ||
| } | ||
| None => rendered.push(b'%'), | ||
| } | ||
| } else { | ||
| rendered.push(byte); | ||
| } | ||
| } | ||
|
|
||
| return Ok(OsString::from_vec(rendered)); |
There was a problem hiding this comment.
Implement %P substitution in connect program commands
The new ConnectProgramConfig::format_command replaces %H but leaves all other % tokens untouched. RSYNC_CONNECT_PROG in upstream rsync supports both %H and %P so helpers like nc %H %P receive the selected daemon port. With the current implementation, %P reaches the shell verbatim, making common configurations fail even when the user specifies a non-default port or simply uses the documented examples. This prevents module listings from working whenever the command expects %P to be replaced, so the connect-program path will break for typical RSYNC_CONNECT_PROG setups.
Useful? React with 👍 / 👎.
…#3439) Audit the disk-commit thread's per-file syscall sequence, the existing fast_io io_uring infrastructure, and the feasibility of using IOSQE_IO_LINK to chain write -> fsync -> rename per file (and across files). Identifies that IoUringDiskBatch is allocated but never wired into process_file, that RENAMEAT (5.11+) and LINKAT (5.15+) opcodes are not yet plumbed in fast_io, and lays out a prototype-first plan with six concrete next steps and a benchmark gate.
…#3439) Audit the disk-commit thread's per-file syscall sequence, the existing fast_io io_uring infrastructure, and the feasibility of using IOSQE_IO_LINK to chain write -> fsync -> rename per file (and across files). Identifies that IoUringDiskBatch is allocated but never wired into process_file, that RENAMEAT (5.11+) and LINKAT (5.15+) opcodes are not yet plumbed in fast_io, and lays out a prototype-first plan with six concrete next steps and a benchmark gate.
…#3439) Audit the disk-commit thread's per-file syscall sequence, the existing fast_io io_uring infrastructure, and the feasibility of using IOSQE_IO_LINK to chain write -> fsync -> rename per file (and across files). Identifies that IoUringDiskBatch is allocated but never wired into process_file, that RENAMEAT (5.11+) and LINKAT (5.15+) opcodes are not yet plumbed in fast_io, and lays out a prototype-first plan with six concrete next steps and a benchmark gate.
Summary
Testing