Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samba server reading the file under then fuse mount point happen some issue #9

Open
yongzhizhan opened this issue Jun 22, 2016 · 0 comments

Comments

@yongzhizhan
Copy link

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant