-
Notifications
You must be signed in to change notification settings - Fork 426
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
Files with unchanged sizes not syncing #710
Comments
Hello there @timg7, thank you for the question and welcome to drive! Yes in deed, this is a common case that we deemed so in issue #117, set in stone by CL #128. Checksumming is turned off by default because for most of the cases, modTime changes and file size changes are sufficient to be able to guess if a file has changed, which is the common case. If we turned on checksumming by default, we'll have accuracy but the overall speed and performance will depreciate unfortunately. Am glad that you were able to diagnose and use Also thank you for the kind words. |
Thanks for the reply. Just to be clear: the mod-time is different, and drive detects this and (appears to) transfer the new file. But for some reason the contents of the file on the receiving end don't change. For example:
Cloud file is created correctly
Cloud file does not receive new content |
Yap yap, I should have clarified, my apologies; modTime changes are their own operations to avoid reuploading the file. When you do a |
@timg7 aside from acknowledging that Otherwise let's close this issue. |
I see. Isn't that rather an "unsafe" policy? I was expecting the file to be transferred if modification-time or file-size change. This is how rsync and many others work. |
IMO it is a waste of bandwidth to transfer files when the checksum is the same(pre-condition is that checksums are the same in the varying Also I was just looking at making a new release and noticed that this issue is a duplicate of #690. |
I'm not sure we're on the same wavelength. What I'm getting at is described by kcwu and l3iggs in the #128 discussion: l3iggs commented on Apr 1, 2015
|
Oh yes, I got you. Am just saying that a modTime change doesn't warrant the content to be transferred. Google Drive's backend allows us to sync up certain meta data with code such as this https://github.com/odeke-em/drive/blob/master/src/remote.go#L737-L738 req.SetModifiedDate(true) without having to transfer the whole file. This would be similar to an atomic |
Just ran into this problem myself. Happy to find that there is a documented solution, but I think that the behavior here has to be improved. At least in my usage pattern of
work for this case? |
On top of that, I would argue that |
Hello,
I noticed that certain modified files were not being updated during push or pull operations. The modifications were detected when drive was run, and the download/upload appeared to take place, but the actual file was not updated.
PS. I really appreciate all the work you do on this project. Many, many thanks!
The text was updated successfully, but these errors were encountered: