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
Backport from go-ipfs, fix tests, hopefully fix Windows #18
Conversation
package flatfs | ||
|
||
func syncDir(dir string) error { | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so i guess windows doesnt like sync?
@tv42 this all LGTM. Ready For Merge? |
Now this should be good to merge. Not tested yet on Windows, as far as I know. |
@gatesvp your help would be greatly appreciated; |
Will test this shortly, I am in transit right now. Will double check in a
|
we are improving :)
|
I guess I should just disable file mode checking on Windows. |
@gatesvp Like a game of table tennis. |
pong :) On Fri, Apr 24, 2015 at 8:19 PM, Tv notifications@github.com wrote:
|
Backported from commit e965c53780003a01fcbd94af96333ace4b3e2748 in the vendored copy in https://github.com/ipfs/go-ipfs
Previous commit made flatfs strip first byte of keys (under the assumption that datastore always makes it be "/").
Used to error out with flatfs_test.go:66: Put fail: failed to open dir: fsync: The handle is invalid It seems Windows does not want syscall.Fsync to be called on directory handles.
…Ex directly For background, see golang/go#3366 Here's the failure seen: --- FAIL: TestPutOverwrite (0.03s) flatfs_test.go:118: Put fail: rename C:\Users\gates\AppData\Local\Temp\test-datastore-flatfs-679014441\7175\put- 717454915 C:\Users\gates\AppData\Local\Temp\test-datastore-flatfs-679014441/7175/71757578.data: Cannot create a file when that file already exists.
3311c2d
to
d3aa062
Compare
Whee! Rebased to make it sit on top of master. @jbenet, this is ready for merge; once that's good, I'll vendor it into ipfs. |
Backport from go-ipfs, fix tests, hopefully fix Windows
Untested on Windows, hoping some kind soul on IRC will do that.
To test, run whatever is the Windows equivalent of: