Skip to content

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

Description

@yongzhizhan

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions