This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 2fad582b26 docs: clarify native range copy and write checksum
capabilities (#9337)
2fad582b26 is described below
commit 2fad582b2682de5d243a8db6546ce49b70ffa9b7
Author: Xuanwo <[email protected]>
AuthorDate: Sat Nov 28 15:20:35 2026 +0800
docs: clarify native range copy and write checksum capabilities (#9337)
* docs: clarify portable write capability descriptions
Refs #9334
* docs: preserve pre-I/O checksum validation guarantee
---
bindings/c/include/opendal.h | 4 ++--
bindings/c/src/capability.rs | 4 ++--
bindings/cpp/include/capability.hpp | 16 +++++++++-------
bindings/cpp/src/capability.rs | 4 ++--
bindings/dotnet/OpenDAL/Capability.cs | 4 ++--
bindings/dotnet/src/capability.rs | 4 ++--
bindings/go/capability.go | 4 ++--
.../src/main/java/org/apache/opendal/Capability.java | 4 ++--
bindings/nodejs/generated.d.ts | 4 ++--
bindings/nodejs/src/capability.rs | 4 ++--
bindings/ocaml/lib/capability.mli | 4 ++--
bindings/ocaml/src/operator/capability.rs | 4 ++--
bindings/python/python/opendal/capability.pyi | 4 ++--
bindings/python/src/capability.rs | 4 ++--
bindings/ruby/src/capability.rs | 4 ++--
core/core/src/types/capability.rs | 13 ++++++++-----
core/core/src/types/checksum.rs | 5 +++--
core/core/src/types/write/writer.rs | 9 ++++-----
website/data/capabilities.json | 4 ++--
19 files changed, 54 insertions(+), 49 deletions(-)
diff --git a/bindings/c/include/opendal.h b/bindings/c/include/opendal.h
index 83f7b594cc..2151ab4134 100644
--- a/bindings/c/include/opendal.h
+++ b/bindings/c/include/opendal.h
@@ -942,7 +942,7 @@ typedef struct opendal_capability {
*/
bool write_can_append;
/**
- * Indicates if a non-append writer can natively copy source ranges into an
in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending.
+ * Indicates if an open, non-append writer can copy eligible byte ranges
from existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability.
*/
bool write_can_copy_from;
/**
@@ -994,7 +994,7 @@ typedef struct opendal_capability {
*/
bool write_with_expires;
/**
- * Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O.
+ * Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O.
*/
bool write_with_checksum;
/**
diff --git a/bindings/c/src/capability.rs b/bindings/c/src/capability.rs
index 87dadf52c5..822f1272be 100644
--- a/bindings/c/src/capability.rs
+++ b/bindings/c/src/capability.rs
@@ -85,7 +85,7 @@ pub struct opendal_capability {
pub write_can_empty: bool,
/// Indicates if append operations are supported.
pub write_can_append: bool,
- /// Indicates if a non-append writer can natively copy source ranges into
an in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending.
+ /// Indicates if an open, non-append writer can copy eligible byte ranges
from existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability.
pub write_can_copy_from: bool,
/// Indicates if Content-Type can be specified during write operations.
pub write_with_content_type: bool,
@@ -111,7 +111,7 @@ pub struct opendal_capability {
pub write_with_user_metadata: bool,
/// Indicates if writes can set a lifetime for the new file.
pub write_with_expires: bool,
- /// Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O.
+ /// Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O.
pub write_with_checksum: bool,
/// Maximum size supported for multipart uploads. For example, AWS S3
supports up to 5GiB per part in multipart uploads.
///
diff --git a/bindings/cpp/include/capability.hpp
b/bindings/cpp/include/capability.hpp
index 51ab453293..88264313a2 100644
--- a/bindings/cpp/include/capability.hpp
+++ b/bindings/cpp/include/capability.hpp
@@ -158,9 +158,9 @@ class Capability {
/// metadata. Stat and read responses may include that metadata when
/// requested.
bool read_with_checksum{false};
- /// Indicates if a non-append writer can natively copy source ranges into an
- /// in-progress write. `Writer::copy_from` remains available through
streaming
- /// fallback when false or when appending.
+ /// Indicates if an open, non-append writer can copy eligible byte ranges
from
+ /// existing objects without transferring the copied bytes through the
client.
+ /// Whole-object copy is a separate capability.
bool write_can_copy_from{false};
/// Indicates if Content-Encoding can be specified during write operations.
bool write_with_content_encoding{false};
@@ -184,10 +184,12 @@ class Capability {
bool write_with_user_metadata{false};
/// Indicates if writes can set a lifetime for the new file.
bool write_with_expires{false};
- /// Indicates if non-append writes support native checksum verification. A
- /// service with this capability supports at least
- /// [`crate::WriteChecksum::Any`] and validates each requested intent before
- /// performing I/O.
+ /// Indicates if non-append writes support native verification with a
checksum
+ /// algorithm selected by the service. Verification may cover only individual
+ /// upload 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 performing
+ /// I/O.
bool write_with_checksum{false};
/// Indicates if versions delete operations are supported.
bool delete_with_version{false};
diff --git a/bindings/cpp/src/capability.rs b/bindings/cpp/src/capability.rs
index 9e8817774f..158e3487e3 100644
--- a/bindings/cpp/src/capability.rs
+++ b/bindings/cpp/src/capability.rs
@@ -79,7 +79,7 @@ pub mod ffi {
write_can_empty: bool,
/// Indicates if append operations are supported.
write_can_append: bool,
- /// Indicates if a non-append writer can natively copy source ranges
into an in-progress write. `Writer::copy_from` remains available through
streaming fallback when false or when appending.
+ /// Indicates if an open, non-append writer can copy eligible byte
ranges from existing objects without transferring the copied bytes through the
client. Whole-object copy is a separate capability.
write_can_copy_from: bool,
/// Indicates if Content-Type can be specified during write operations.
write_with_content_type: bool,
@@ -105,7 +105,7 @@ pub mod ffi {
write_with_user_metadata: bool,
/// Indicates if writes can set a lifetime for the new file.
write_with_expires: bool,
- /// Indicates if non-append writes support native checksum
verification. A service with this capability supports at least
[`crate::WriteChecksum::Any`] and validates each requested intent before
performing I/O.
+ /// Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O.
write_with_checksum: bool,
/// Maximum size supported for multipart uploads. For example, AWS S3
supports up to 5GiB per part in multipart uploads.
write_multi_max_size: usize,
diff --git a/bindings/dotnet/OpenDAL/Capability.cs
b/bindings/dotnet/OpenDAL/Capability.cs
index d1130f3aac..54e027e5d8 100644
--- a/bindings/dotnet/OpenDAL/Capability.cs
+++ b/bindings/dotnet/OpenDAL/Capability.cs
@@ -276,7 +276,7 @@ public struct Capability
public bool WriteCanAppend { get; private set; }
/// <summary>
- /// Indicates if a non-append writer can natively copy source ranges into
an in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending.
+ /// Indicates if an open, non-append writer can copy eligible byte ranges
from existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability.
/// </summary>
public bool WriteCanCopyFrom { get; private set; }
@@ -341,7 +341,7 @@ public struct Capability
public bool WriteWithExpires { get; private set; }
/// <summary>
- /// Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O.
+ /// Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O.
/// </summary>
public bool WriteWithChecksum { get; private set; }
diff --git a/bindings/dotnet/src/capability.rs
b/bindings/dotnet/src/capability.rs
index 88fb1bbc32..e6ecf31823 100644
--- a/bindings/dotnet/src/capability.rs
+++ b/bindings/dotnet/src/capability.rs
@@ -86,7 +86,7 @@ pub struct Capability {
pub write_can_empty: bool,
/// Indicates if append operations are supported.
pub write_can_append: bool,
- /// Indicates if a non-append writer can natively copy source ranges into
an in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending.
+ /// Indicates if an open, non-append writer can copy eligible byte ranges
from existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability.
pub write_can_copy_from: bool,
/// Indicates if Content-Type can be specified during write operations.
pub write_with_content_type: bool,
@@ -112,7 +112,7 @@ pub struct Capability {
pub write_with_user_metadata: bool,
/// Indicates if writes can set a lifetime for the new file.
pub write_with_expires: bool,
- /// Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O.
+ /// Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O.
pub write_with_checksum: bool,
/// Maximum size supported for multipart uploads. For example, AWS S3
supports up to 5GiB per part in multipart uploads.
pub write_multi_max_size: usize,
diff --git a/bindings/go/capability.go b/bindings/go/capability.go
index 4b2afc66cd..67bc32d1ff 100644
--- a/bindings/go/capability.go
+++ b/bindings/go/capability.go
@@ -279,7 +279,7 @@ func (c *Capability) WriteCanAppend() bool {
return c.inner.writeCanAppend == 1
}
-// WriteCanCopyFrom reports: Indicates if a non-append writer can natively
copy source ranges into an in-progress write. `Writer::copy_from` remains
available through streaming fallback when false or when appending.
+// WriteCanCopyFrom reports: Indicates if an open, non-append writer can copy
eligible byte ranges from existing objects without transferring the copied
bytes through the client. Whole-object copy is a separate capability.
func (c *Capability) WriteCanCopyFrom() bool {
return c.inner.writeCanCopyFrom == 1
}
@@ -344,7 +344,7 @@ func (c *Capability) WriteWithExpires() bool {
return c.inner.writeWithExpires == 1
}
-// WriteWithChecksum reports: Indicates if non-append writes support native
checksum verification. A service with this capability supports at least
[`crate::WriteChecksum::Any`] and validates each requested intent before
performing I/O.
+// WriteWithChecksum reports: Indicates if non-append writes support native
verification with a checksum algorithm selected by the service. Verification
may cover only individual upload 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
performing I/O.
func (c *Capability) WriteWithChecksum() bool {
return c.inner.writeWithChecksum == 1
}
diff --git a/bindings/java/src/main/java/org/apache/opendal/Capability.java
b/bindings/java/src/main/java/org/apache/opendal/Capability.java
index c6c2a3d25c..27f96e9475 100644
--- a/bindings/java/src/main/java/org/apache/opendal/Capability.java
+++ b/bindings/java/src/main/java/org/apache/opendal/Capability.java
@@ -177,7 +177,7 @@ public class Capability {
public final boolean writeCanAppend;
/**
- * Indicates if a non-append writer can natively copy source ranges into
an in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending.
+ * Indicates if an open, non-append writer can copy eligible byte ranges
from existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability.
*/
public final boolean writeCanCopyFrom;
@@ -242,7 +242,7 @@ public class Capability {
public final boolean writeWithExpires;
/**
- * Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O.
+ * Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O.
*/
public final boolean writeWithChecksum;
diff --git a/bindings/nodejs/generated.d.ts b/bindings/nodejs/generated.d.ts
index 504dd948ac..56ef7a73eb 100644
--- a/bindings/nodejs/generated.d.ts
+++ b/bindings/nodejs/generated.d.ts
@@ -153,7 +153,7 @@ export declare class Capability {
get writeCanEmpty(): boolean
/** Indicates if append operations are supported. */
get writeCanAppend(): boolean
- /** Indicates if a non-append writer can natively copy source ranges into an
in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending. */
+ /** Indicates if an open, non-append writer can copy eligible byte ranges
from existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability. */
get writeCanCopyFrom(): boolean
/** Indicates if Content-Type can be specified during write operations. */
get writeWithContentType(): boolean
@@ -179,7 +179,7 @@ export declare class Capability {
get writeWithUserMetadata(): boolean
/** Indicates if writes can set a lifetime for the new file. */
get writeWithExpires(): boolean
- /** Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O. */
+ /** Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O. */
get writeWithChecksum(): boolean
/** Maximum size supported for multipart uploads. For example, AWS S3
supports up to 5GiB per part in multipart uploads. */
get writeMultiMaxSize(): bigint | null
diff --git a/bindings/nodejs/src/capability.rs
b/bindings/nodejs/src/capability.rs
index 5f799d5a23..2402b2d126 100644
--- a/bindings/nodejs/src/capability.rs
+++ b/bindings/nodejs/src/capability.rs
@@ -210,7 +210,7 @@ impl Capability {
self.0.write_can_append
}
- /// Indicates if a non-append writer can natively copy source ranges into
an in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending.
+ /// Indicates if an open, non-append writer can copy eligible byte ranges
from existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability.
#[napi(getter)]
pub fn write_can_copy_from(&self) -> bool {
self.0.write_can_copy_from
@@ -288,7 +288,7 @@ impl Capability {
self.0.write_with_expires
}
- /// Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O.
+ /// Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O.
#[napi(getter)]
pub fn write_with_checksum(&self) -> bool {
self.0.write_with_checksum
diff --git a/bindings/ocaml/lib/capability.mli
b/bindings/ocaml/lib/capability.mli
index b2f86db6e2..46b92e8b5e 100644
--- a/bindings/ocaml/lib/capability.mli
+++ b/bindings/ocaml/lib/capability.mli
@@ -114,7 +114,7 @@ val write_can_append : Opendal_core.Operator.capability ->
bool
(** Indicates if append operations are supported. *)
val write_can_copy_from : Opendal_core.Operator.capability -> bool
-(** Indicates if a non-append writer can natively copy source ranges into an
in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending. *)
+(** Indicates if an open, non-append writer can copy eligible byte ranges from
existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability. *)
val write_with_content_type : Opendal_core.Operator.capability -> bool
(** Indicates if Content-Type can be specified during write operations. *)
@@ -153,7 +153,7 @@ val write_with_expires : Opendal_core.Operator.capability
-> bool
(** Indicates if writes can set a lifetime for the new file. *)
val write_with_checksum : Opendal_core.Operator.capability -> bool
-(** Indicates if non-append writes support native checksum verification. A
service with this capability supports at least \[`crate::WriteChecksum::Any`\]
and validates each requested intent before performing I/O. *)
+(** Indicates if non-append writes support native verification with a checksum
algorithm selected by the service. Verification may cover only individual
upload 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 performing I/O. *)
val write_multi_max_size : Opendal_core.Operator.capability -> int64 option
(** Maximum size supported for multipart uploads. For example, AWS S3 supports
up to 5GiB per part in multipart uploads. *)
diff --git a/bindings/ocaml/src/operator/capability.rs
b/bindings/ocaml/src/operator/capability.rs
index 4dc51d2f3a..9d3bd4ff56 100644
--- a/bindings/ocaml/src/operator/capability.rs
+++ b/bindings/ocaml/src/operator/capability.rs
@@ -215,7 +215,7 @@ pub fn capability_write_can_append(cap: &Capability) ->
bool {
cap.0.write_can_append
}
-/// Indicates if a non-append writer can natively copy source ranges into an
in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending.
+/// Indicates if an open, non-append writer can copy eligible byte ranges from
existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability.
#[ocaml::func]
#[ocaml::sig("capability -> bool ")]
pub fn capability_write_can_copy_from(cap: &Capability) -> bool {
@@ -306,7 +306,7 @@ pub fn capability_write_with_expires(cap: &Capability) ->
bool {
cap.0.write_with_expires
}
-/// Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O.
+/// Indicates if non-append writes support native verification with a checksum
algorithm selected by the service. Verification may cover only individual
upload 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 performing I/O.
#[ocaml::func]
#[ocaml::sig("capability -> bool ")]
pub fn capability_write_with_checksum(cap: &Capability) -> bool {
diff --git a/bindings/python/python/opendal/capability.pyi
b/bindings/python/python/opendal/capability.pyi
index b49dbd94ab..6d59e6e2ac 100644
--- a/bindings/python/python/opendal/capability.pyi
+++ b/bindings/python/python/opendal/capability.pyi
@@ -275,7 +275,7 @@ class Capability:
"""Indicates if append operations are supported."""
@property
def write_can_copy_from(self, /) -> bool:
- """Indicates if a non-append writer can natively copy source ranges
into an in-progress write. `Writer::copy_from` remains available through
streaming fallback when false or when appending."""
+ """Indicates if an open, non-append writer can copy eligible byte
ranges from existing objects without transferring the copied bytes through the
client. Whole-object copy is a separate capability."""
@property
def write_can_empty(self, /) -> bool:
"""Indicates if writing empty content is supported."""
@@ -296,7 +296,7 @@ class Capability:
"""Indicates if Cache-Control can be specified during write
operations."""
@property
def write_with_checksum(self, /) -> bool:
- """Indicates if non-append writes support native checksum
verification. A service with this capability supports at least
[`crate::WriteChecksum::Any`] and validates each requested intent before
performing I/O."""
+ """Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O."""
@property
def write_with_content_disposition(self, /) -> bool:
"""Indicates if Content-Disposition can be specified during write
operations."""
diff --git a/bindings/python/src/capability.rs
b/bindings/python/src/capability.rs
index de733272a9..e3a3a3cc13 100644
--- a/bindings/python/src/capability.rs
+++ b/bindings/python/src/capability.rs
@@ -89,7 +89,7 @@ pub struct Capability {
pub write_can_empty: bool,
/// Indicates if append operations are supported.
pub write_can_append: bool,
- /// Indicates if a non-append writer can natively copy source ranges into
an in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending.
+ /// Indicates if an open, non-append writer can copy eligible byte ranges
from existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability.
pub write_can_copy_from: bool,
/// Indicates if Content-Type can be specified during write operations.
pub write_with_content_type: bool,
@@ -115,7 +115,7 @@ pub struct Capability {
pub write_with_user_metadata: bool,
/// Indicates if writes can set a lifetime for the new file.
pub write_with_expires: bool,
- /// Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O.
+ /// Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O.
pub write_with_checksum: bool,
/// Maximum size supported for multipart uploads. For example, AWS S3
supports up to 5GiB per part in multipart uploads.
pub write_multi_max_size: Option<usize>,
diff --git a/bindings/ruby/src/capability.rs b/bindings/ruby/src/capability.rs
index 5e25dca04e..868972001a 100644
--- a/bindings/ruby/src/capability.rs
+++ b/bindings/ruby/src/capability.rs
@@ -270,7 +270,7 @@ impl Capability {
/// @yard
/// @def write_can_copy_from
- /// Indicates if a non-append writer can natively copy source ranges into
an in-progress write. `Writer::copy_from` remains available through streaming
fallback when false or when appending.
+ /// Indicates if an open, non-append writer can copy eligible byte ranges
from existing objects without transferring the copied bytes through the client.
Whole-object copy is a separate capability.
/// @return [Boolean]
pub fn write_can_copy_from(&self) -> bool {
self.0.write_can_copy_from
@@ -374,7 +374,7 @@ impl Capability {
/// @yard
/// @def write_with_checksum
- /// Indicates if non-append writes support native checksum verification. A
service with this capability supports at least [`crate::WriteChecksum::Any`]
and validates each requested intent before performing I/O.
+ /// Indicates if non-append writes support native verification with a
checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O.
/// @return [Boolean]
pub fn write_with_checksum(&self) -> bool {
self.0.write_with_checksum
diff --git a/core/core/src/types/capability.rs
b/core/core/src/types/capability.rs
index b953755a41..2c878155e0 100644
--- a/core/core/src/types/capability.rs
+++ b/core/core/src/types/capability.rs
@@ -125,8 +125,9 @@ pub struct Capability {
pub write_can_empty: bool,
/// Indicates if append operations are supported.
pub write_can_append: bool,
- /// Indicates if a non-append writer can natively copy source ranges into
an in-progress write.
- /// `Writer::copy_from` remains available through streaming fallback when
false or when appending.
+ /// Indicates if an open, non-append writer can copy eligible byte ranges
from
+ /// existing objects without transferring the copied bytes through the
client.
+ /// Whole-object copy is a separate capability.
pub write_can_copy_from: bool,
/// Indicates if Content-Type can be specified during write operations.
pub write_with_content_type: bool,
@@ -152,9 +153,11 @@ pub struct Capability {
pub write_with_user_metadata: bool,
/// Indicates if writes can set a lifetime for the new file.
pub write_with_expires: bool,
- /// Indicates if non-append writes support native checksum verification.
- /// A service with this capability supports at least
[`crate::WriteChecksum::Any`]
- /// and validates each requested intent before performing I/O.
+ /// Indicates if non-append writes support native verification with a
checksum
+ /// algorithm selected by the service. Verification may cover only
individual
+ /// upload 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
performing I/O.
#[serde(default)]
pub write_with_checksum: bool,
/// Maximum size supported for multipart uploads.
diff --git a/core/core/src/types/checksum.rs b/core/core/src/types/checksum.rs
index 8a272dbbbf..9bc3eb9741 100644
--- a/core/core/src/types/checksum.rs
+++ b/core/core/src/types/checksum.rs
@@ -145,8 +145,9 @@ impl Checksum {
pub enum WriteChecksum {
/// Use any native write checksum, preferring CRC-family algorithms.
///
- /// The service may verify individual parts or blocks without producing a
- /// full-file checksum.
+ /// A service that advertises [`crate::Capability::write_with_checksum`]
+ /// supports this intent on supported non-append writes. The service may
verify
+ /// individual parts or blocks without producing a full-file checksum.
Any,
/// Use a native CRC-family checksum.
///
diff --git a/core/core/src/types/write/writer.rs
b/core/core/src/types/write/writer.rs
index 138f7552c2..003cb72430 100644
--- a/core/core/src/types/write/writer.rs
+++ b/core/core/src/types/write/writer.rs
@@ -191,11 +191,10 @@ impl Writer {
///
/// The source path is resolved by the same [`Operator`] that created this
/// writer. Calls to `write` and `copy_from` may be interleaved, and their
- /// call order defines the destination bytes. OpenDAL uses a native
- /// writer-side copy when the composed service supports it and otherwise
- /// streams the range through the client. Check
- /// [`Capability::write_can_copy_from`] to determine whether eligible
- /// non-append writes use the native path.
+ /// call order defines the destination bytes. OpenDAL copies eligible
ranges
+ /// natively on non-append writes when the composed service advertises
+ /// [`Capability::write_can_copy_from`]. OpenDAL streams the range through
+ /// the client when appending or when native copy is unavailable.
///
/// A writer created with [`options::WriteOptions::checksum`] always
/// streams the range through the client, even when the service supports
diff --git a/website/data/capabilities.json b/website/data/capabilities.json
index 4dd201b0f1..9e98cd82d9 100644
--- a/website/data/capabilities.json
+++ b/website/data/capabilities.json
@@ -256,7 +256,7 @@
"short": "can_copy_from",
"group": "write",
"kind": "bool",
- "doc": "Indicates if a non-append writer can natively copy source ranges
into an in-progress write."
+ "doc": "Indicates if an open, non-append writer can copy eligible byte
ranges from existing objects without transferring the copied bytes through the
client. Whole-object copy is a separate capability."
},
{
"name": "write_with_content_type",
@@ -347,7 +347,7 @@
"short": "with_checksum",
"group": "write",
"kind": "bool",
- "doc": "Indicates if non-append writes support native checksum
verification."
+ "doc": "Indicates if non-append writes support native verification with
a checksum algorithm selected by the service. Verification may cover only
individual upload 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 performing I/O."
},
{
"name": "write_multi_max_size",