-
Notifications
You must be signed in to change notification settings - Fork 48
receive: use filter on receive diff #69
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
Conversation
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
rmdir = f1.path + string(os.PathSeparator) | ||
} else if rmdir != "" { | ||
rmdir = "" | ||
} | ||
f = f2.f | ||
f = f2.stat |
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.
@tonistiigi can you explain why sometimes the original f2
is used and at other times the f2copy
copy is used?
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.
because sometimes we need the filtered and sometimes not. checks are with filter but we pass the original to the callback.
full diff: tonistiigi/fsutil@3d2716d...0f039a0 - tonistiigi/fsutil#68 fix gocrypto commit - tonistiigi/fsutil#69 receive: use filter on receive diff - prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: tonistiigi/fsutil@3d2716d...0f039a0 - tonistiigi/fsutil#68 fix gocrypto commit - tonistiigi/fsutil#69 receive: use filter on receive diff - prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: tonistiigi/fsutil@3bbb99c...0f039a0 - tonistiigi/fsutil#66 copy: add fast copy path for darwin - tonistiigi/fsutil#67 Treat Unix sockets as regular files - relates to moby/buildkit#1144 Fix socket handling - tonistiigi/fsutil#68 fix gocrypto commit - tonistiigi/fsutil#69 receive: use filter on receive diff - prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: tonistiigi/fsutil@3bbb99c...0f039a0 - tonistiigi/fsutil#66 copy: add fast copy path for darwin - tonistiigi/fsutil#67 Treat Unix sockets as regular files - relates to moby/buildkit#1144 Fix socket handling - tonistiigi/fsutil#68 fix gocrypto commit - tonistiigi/fsutil#69 receive: use filter on receive diff - prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 94a8c8b3c09540497f6fb7a3d40de80610c920ac Component: engine
full diff: tonistiigi/fsutil@3d2716d...0f039a0 - tonistiigi/fsutil#68 fix gocrypto commit - tonistiigi/fsutil#69 receive: use filter on receive diff - prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 6a06e8b) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: tonistiigi/fsutil@7f9f923...0f039a0 - tonistiigi/fsutil#69 receive: use filter on receive diff - prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: tonistiigi/fsutil@7f9f923...0f039a0 - tonistiigi/fsutil#69 receive: use filter on receive diff - prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: tonistiigi/fsutil@7f9f923...0f039a0 - tonistiigi/fsutil#69 receive: use filter on receive diff - prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 0fe7190d04156b6e2103695f23b1b28c73205023 Component: cli
full diff: tonistiigi/fsutil@7f9f923...0f039a0 - tonistiigi/fsutil#69 receive: use filter on receive diff - prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Make sure filter is taken into an account when comparing existing files in the receiver. This issue prevents incremental transfers with userns because the metadata on disk is always different than the one being transferred.