You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by er...@apache.org on 2026/08/16 15:05:41 UTC

(opendal) 01/01: fix(services/onedrive): disable write_total_max_size on smaller machine

This is an automated email from the ASF dual-hosted git repository.

erickguan pushed a commit to branch fix-build
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit 010d9cc652d5302901133b71cefe0a1aeafc596b
Author: Erick Guan <29...@users.noreply.github.com>
AuthorDate: Sun Aug 16 23:04:55 2026 +0800

    fix(services/onedrive): disable write_total_max_size on smaller machine
---
 core/services/onedrive/src/backend.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/services/onedrive/src/backend.rs b/core/services/onedrive/src/backend.rs
index 492101d94..b19b5f38c 100644
--- a/core/services/onedrive/src/backend.rs
+++ b/core/services/onedrive/src/backend.rs
@@ -134,6 +134,8 @@ impl Builder for OnedriveBuilder {
 
             write: true,
             write_with_if_match: true,
+            // disable because usize is too small on armhf and other arch to represent more than 4GB
+            #[cfg(target_pointer_width = "64")]
             // Read more at https://support.microsoft.com/en-us/office/restrictions-and-limitations-in-onedrive-and-sharepoint-64883a5d-228e-48f5-b3d2-eb39e07630fa#individualfilesize
             write_total_max_size: Some(250 * 1024 * 1024 * 1024), // 250GB
             copy: true,