Skip to content

Commit ca438bd

Browse files
Merge branch 'release/0.3.1'
2 parents 24822b6 + d978cb2 commit ca438bd

File tree

5 files changed

+41
-5
lines changed

5 files changed

+41
-5
lines changed

.idea/runConfigurations/PosixMirrorFileSystem__Linux_.xml

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/PosixMirrorFileSystem__fuse_t_.xml

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/PosixMirrorFileSystem.xml .idea/runConfigurations/PosixMirrorFileSystem__macFUSE_.xml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jfuse-examples/src/main/java/org/cryptomator/jfuse/examples/AbstractMirrorFileSystem.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ public Errno errno() {
106106

107107
@Override
108108
public void init(FuseConnInfo conn, FuseConfig cfg) {
109-
conn.setWant(conn.want() | FuseConnInfo.FUSE_CAP_BIG_WRITES);
110-
conn.setMaxRead(Integer.MAX_VALUE);
111-
conn.setMaxWrite(Integer.MAX_VALUE);
109+
conn.setWant(conn.want() | (conn.capable() & FuseConnInfo.FUSE_CAP_BIG_WRITES));
112110
conn.setMaxBackground(16);
113111
conn.setCongestionThreshold(4);
114112
}

jfuse-examples/src/main/java/org/cryptomator/jfuse/examples/PosixMirrorFileSystem.java

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public static void main(String[] args) {
3131
Path mirrored = Path.of(args[0]);
3232
Path mountPoint = Path.of(args[1]);
3333
var builder = Fuse.builder();
34+
var libPath = System.getProperty("fuse.lib.path");
35+
if (libPath != null && !libPath.isEmpty()) {
36+
builder.setLibraryPath(libPath);
37+
}
3438
try (var fuse = builder.build(new PosixMirrorFileSystem(mirrored, builder.errno()))) {
3539
LOG.info("Mounting at {}...", mountPoint);
3640
fuse.mount("jfuse", mountPoint, "-s");

0 commit comments

Comments
 (0)