Skip to content

Commit

Permalink
Merge branch 'release/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Dec 5, 2018
2 parents 085fe33 + 767d81b commit 9fd179d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.cryptomator</groupId>
<artifactId>fuse-nio-adapter</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<name>FUSE-NIO-Adapter</name>
<description>Access resources at a given NIO path via FUSE.</description>
<url>https://github.com/cryptomator/fuse-nio-adapter</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class ReadOnlyAdapter extends FuseStubFS implements FuseNioAdapter {

private static final Logger LOG = LoggerFactory.getLogger(ReadOnlyAdapter.class);
private static final int BLOCKSIZE = 4096;
private static final int FUSE_NAME_MAX = 254; // 255 is preferred, but nautilus checks for this value + 1
protected final Path root;
protected final FileStore fileStore;
protected final LockManager lockManager;
Expand Down Expand Up @@ -75,6 +76,7 @@ public int statfs(String path, Statvfs stbuf) {
stbuf.f_blocks.set(tBlocks);
stbuf.f_bavail.set(aBlocks);
stbuf.f_bfree.set(aBlocks);
stbuf.f_namemax.set(FUSE_NAME_MAX);
LOG.trace("statfs {} ({} / {})", path, avail, total);
return 0;
} catch (IOException | RuntimeException e) {
Expand Down

0 comments on commit 9fd179d

Please sign in to comment.