Xuanwo opened a new pull request, #9337: URL: https://github.com/apache/opendal/pull/9337
# Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> Refs #9334 # Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. --> Shared capability descriptions appear in the language bindings and on the website. Readers need to know what each flag guarantees without having to interpret Rust API names. # What changes are included in this PR? <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> - `write_can_copy_from` means an open, non-append writer can copy eligible source ranges without transferring those bytes through the client. Whole-object copy has its own capability. - `write_with_checksum` means the service can select a checksum algorithm for a non-append write. Verification may cover individual requests, parts, or blocks. Support for caller-selected algorithms and full-object verification depends on the service and write mode. OpenDAL rejects unsupported explicit checksum requests before I/O. # Are there any user-facing changes? <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> The bindings and website now describe both flags in storage terms. The Rust API docs explain when `Writer::copy_from` streams through the client and how `write_with_checksum` relates to `WriteChecksum::Any`. # Breaking changes <!-- Leave this section empty for compatible changes. For breaking changes, add the breaking-changes label and use the following format outside this comment: Affected packages: core, bindings/java Migration: - Replace `old_api()` with `new_api()`. Use package names from dev/src/release/package.rs. You can also list bindings/zig for migration notes. Include bindings affected by behavior changes even when their source files are unchanged. Explain how users can migrate, or explain the removal and available alternatives. --> # AI Usage Statement <!-- If AI materially assisted or authored this PR, list each harness/model/effort combination that materially contributed, and briefly describe its role: - Harness: Application or agent framework used to run the model. - Model: Model name or identifier shown by the harness, with version if available. - Effort: Reasoning effort setting as named by the harness. - Role: AI's contribution and any assumptions or unknowns that affect review. Do not include routine command output or repeat information provided elsewhere. The accountable human author remains responsible for every submitted claim and change. If AI did not materially assist this PR, write "None". --> - Pi, `magpie/codex/gpt-6.2-sol`, `max` — implemented the documentation changes. - Pi, `magpie/codex/gpt-6.2-sol`, `high` — reviewed the changes. - Pi, `magpie/codex/gpt-6.2-astra`, `high` — defined the scope, corrected the pre-I/O checksum wording, and drafted the PR text. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
