Skip to content

Commit

Permalink
Merge branch 'release/0.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Oct 26, 2022
2 parents 24822b6 + d978cb2 commit ca438bd
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
17 changes: 17 additions & 0 deletions .idea/runConfigurations/PosixMirrorFileSystem__Linux_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations/PosixMirrorFileSystem__fuse_t_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ public Errno errno() {

@Override
public void init(FuseConnInfo conn, FuseConfig cfg) {
conn.setWant(conn.want() | FuseConnInfo.FUSE_CAP_BIG_WRITES);
conn.setMaxRead(Integer.MAX_VALUE);
conn.setMaxWrite(Integer.MAX_VALUE);
conn.setWant(conn.want() | (conn.capable() & FuseConnInfo.FUSE_CAP_BIG_WRITES));
conn.setMaxBackground(16);
conn.setCongestionThreshold(4);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public static void main(String[] args) {
Path mirrored = Path.of(args[0]);
Path mountPoint = Path.of(args[1]);
var builder = Fuse.builder();
var libPath = System.getProperty("fuse.lib.path");
if (libPath != null && !libPath.isEmpty()) {
builder.setLibraryPath(libPath);
}
try (var fuse = builder.build(new PosixMirrorFileSystem(mirrored, builder.errno()))) {
LOG.info("Mounting at {}...", mountPoint);
fuse.mount("jfuse", mountPoint, "-s");
Expand Down

0 comments on commit ca438bd

Please sign in to comment.