when i using samba server read then file under the fuse mount point, it get the file attributes by getattr function in fuse, use the file attribute block info to calculate the file size. but the adapter [co.paralleluniverse.javafs.FuseFileSystemProvider] does not complete set the file block info int stat struct.this issue making samba server uncorrectable read/write file.
fix it:
function:[co.paralleluniverse.javafs.FuseFileSystemProvider.getattr]
stat.size(attributes.size());
stat.blksize(4096);
stat.blocks((attributes.size() + 4096 - 1) / 4096);
when i using samba server read then file under the fuse mount point, it get the file attributes by getattr function in fuse, use the file attribute block info to calculate the file size. but the adapter [co.paralleluniverse.javafs.FuseFileSystemProvider] does not complete set the file block info int stat struct.this issue making samba server uncorrectable read/write file.
fix it:
function:[co.paralleluniverse.javafs.FuseFileSystemProvider.getattr]