Skip to content

Instantly share code, notes, and snippets.

@leonklingele
Created June 24, 2018 08:16
Show Gist options
  • Save leonklingele/ea61f8b5de88027ef97638749daf896b to your computer and use it in GitHub Desktop.
Save leonklingele/ea61f8b5de88027ef97638749daf896b to your computer and use it in GitHub Desktop.
diff --git a/sshfs.c b/sshfs.c
index fb566f4..d1c1fb2 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3862,7 +3862,11 @@
}
#endif /* __APPLE__ */
- sshfs.blksize = 4096;
+#ifdef __APPLE__
+ sshfs.blksize = 0;
+#else
+ sshfs.blksize = 4096;
+#endif
/* SFTP spec says all servers should allow at least 32k I/O */
sshfs.max_read = 32768;
sshfs.max_write = 32768;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment