From 08330575034193ef79e5a10c6049e75ceaaa75b1 Mon Sep 17 00:00:00 2001 From: Sean Ross Date: Thu, 29 Feb 2024 03:16:28 -0700 Subject: [PATCH] =?UTF-8?q?Moved=20noapplexattr=20under=20runtime.GOARCH?= =?UTF-8?q?=20=3D=3D=20"amd64"=20to=20resolve=20the=20fin=E2=80=A6=20(#535?= =?UTF-8?q?1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moved noapplexattr under runtime.GOARCH == "amd64" to resolve the finder copy bug on arm64 macOS devices. --- weed/command/mount_std.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index f32d328b0..742c38180 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -201,7 +201,9 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { ioSizeMB *= 2 } fuseMountOptions.Options = append(fuseMountOptions.Options, "daemon_timeout=600") - fuseMountOptions.Options = append(fuseMountOptions.Options, "noapplexattr") + if runtime.GOARCH == "amd64" { + fuseMountOptions.Options = append(fuseMountOptions.Options, "noapplexattr") + } // fuseMountOptions.Options = append(fuseMountOptions.Options, "novncache") // need to test effectiveness fuseMountOptions.Options = append(fuseMountOptions.Options, "slow_statfs") fuseMountOptions.Options = append(fuseMountOptions.Options, "volname="+serverFriendlyName)