GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — serve sftp, serve webdav: fix stale hashes reported while a file is being uploaded - fixes #4956 by hsdfat · Pull Request #9946 · rclone/rclone Conversation
Contributor
What does this change do?With Following the approach suggested in the issue, this adds a Files which are not dirty in the cache behave exactly as before: the hash still comes from the remote object, and A file with neither a remote object nor a dirty cache item - one still being streamed up with Testing
Linked issueFixes #4956 Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsFile.Hash returns the hash of the cached copy while the file is modified in the VFS cache and waiting to be written back, and the hash of the remote object otherwise, in the same way that File.Size already reports the size of a dirty cache item. For rclone#4956 …fixes rclone#4956 md5sum and friends read the hash from the remote object, which still describes the old contents for the whole time the new contents are sitting in the VFS cache waiting to be written back. Use File.Hash instead so the hash describes the data which will be uploaded. This also replaces the special case for files which have no remote object yet, as File.Hash now covers it. The ETag and the owncloud checksum were read from the remote object, which still describes the old contents while the new contents are in the VFS cache waiting to be written back, so a PROPFIND or HEAD could return the size of the new file next to the ETag of the old one. For rclone#4956
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersAt least 1 approving review is required to merge this pull request. Uh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. vfs: serve sftp is reporting incorrect hashes when used with --vfs-cache-mode fullUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |