mafintosh/fuse-bindings

`fsync/fsyncdir` API documentation typo?

Closed this issue · 8 comments

lsm commented

I believe in README.md
ops.fsync(path, fd, datasync, cb)
should be
ops.fsync(path, datasync, fd, cb)

no the docs are correct. the fd is the 2nd argument. are you not experiencing this?

lsm commented

I will double check.

lsm commented

Yes, you are right. The current document is correct.

Btw, have you ever experienced error like this:

fuse: bad error value: 53220

I'm getting the exactly same error every time I run npm i fuse-bindings in the mounted folder. Same for other compiling/node-gyp operations:

npm i utf-8-validate gets fuse: bad error value: 19020
npm i bufferutil is fuse: bad error value: 19092

I'm using Mac OS X 10.10.3 with OSXFUSE 2.8

which file system are you mounting?

lsm commented

You meant the backend of the handlers? It's mongodb. It doesn't seem to be caused by the implementation of handlers.

I'm sure what you mean. Could you share a full code example?

lsm commented

Sure, just did. I am closing this one since it's off topic.

lsm commented

Did you have a chance to try the code? Any problems?