Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCalling fcntl(..., F_FULLFSYNC) on osxfuse volume returns "Invalid argument" error #79
Comments
This comment has been minimized.
This comment has been minimized.
|
Basically, any program that tries to do a full-sync will have issues. We also noticed this trying to run a database in an OSXFuse fs. |
This comment has been minimized.
This comment has been minimized.
|
Sorry for the late reply. F_FULLFSYNC is currently not implemented. Thats why you are seeing the error. From a technical standpoint there would be no difference between calling On a side note, running a database on a FUSE volume might not be ideal because of the overhead and it will be very difficult to guarantee data integrity in case of a file system crash. Depending on the file system there might be several layers of caching that are not getting flushed when calling fsync or doing a fnctl with F_FULLFSYNC. |
This comment has been minimized.
This comment has been minimized.
|
Benjamin, On Mon, Apr 15, 2013 at 12:24 PM, Benjamin Fleischer <
|
This comment has been minimized.
This comment has been minimized.
|
I edited my previous reply shortly after posting it.You might not have received a notification containing the edited version. I agree that we should be doing a plain |
This comment has been minimized.
This comment has been minimized.
|
Yeah, I agree that doing a plain fsync when fcntl is called with F_FULLSYNC is called would be the way to go. |
This comment has been minimized.
This comment has been minimized.
|
Commit osxfuse/kext@e940e7d adds support for |
Here is a simple test application which returns "Invalid argument" error for any file located on the osxfuse volume. I've tested it on my own FS and on SSHFS from the site as well.