Skip to content

Conversation

@drderiv
Copy link

@drderiv drderiv commented Oct 9, 2019

This PR addresses the issues outlined in #5.

The solution to the Samba issue lies in providing the nlink key when directory attributes are returned. The fuse-bindings operations documentation abstract for getattr() appears to have been directly pasted into this package, and it has no nlink key, but in the fuse-bindings example code, nlink is always specified. Since Samba uses the nlink value in order to determine the character of an entry, it's mandatory to specify a proper nlink in order to use this package with Samba. Thanks to this serverfault thread for identifying the issue.

The solution to the 'ls -l' operation not permitted issue required returning fuse.ENODATA in response to a getxattr() request, rather than the fuse.EPERM that was being returned. Thanks to this stackoverflow thread for identifying the issue.

Another minor issue was also resolved in that on fast systems, there was potential for a conflict in the mounting directory filename if two files were attempted to be mounted within one millisecond.

In addition, for clarity, two unnecessarily defined error constants are removed and replaced with the full set of error definitions already available in one of the package's dependencies.

Finally, a constant is added to turn on or off debugging output.

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

Successfully merging this pull request may close these issues.

1 participant