Skip to content

Add RSYNC_CONNECT_PROG support for module listings - #1086

Merged
oferchen merged 1 commit into
masterfrom
implement-missing-components-for-oc-rsync-9jy9fa
Oct 25, 2025
Merged

oferchen merged 1 commit into
masterfrom
implement-missing-components-for-oc-rsync-9jy9fa

Conversation

@oferchen

@oferchen oferchen commented Oct 25, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • add RSYNC_CONNECT_PROG handling to module listings by introducing a connect-program transport path
  • extend module list tests to exercise RSYNC_CONNECT_PROG using an environment-aware guard helper

Testing

  • cargo test -p rsync-core

@oferchen
oferchen merged commit a963be3 into master Oct 25, 2025
@oferchen
oferchen deleted the implement-missing-components-for-oc-rsync-9jy9fa branch October 25, 2025 00:18

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment thread crates/core/src/client.rs
Comment on lines +6977 to +6993
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));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

oferchen added a commit that referenced this pull request Apr 29, 2026
…#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.
oferchen added a commit that referenced this pull request May 1, 2026
…#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.
oferchen added a commit that referenced this pull request May 5, 2026
…#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant