Skip to content
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

fsnotify: correctly check for event operation #13325

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

kaworu
Copy link
Member

@kaworu kaworu commented Sep 29, 2020

Note: Backporting for v1.7 will fail to apply the ipmasq part of the patch as ipmasq isn't in v1.7 and can safely be ignored.

fsnotify Event.Op is a bit mask and testing for strict equality might
not detect the event operation correctly.

This patch make it so we check for fsnotify event operation
consistently as documented at https://github.com/fsnotify/fsnotify.

fsnotify Event.Op is a bit mask and testing for strict equality might
not detect the event operation correctly.

This patch make it so we check for fsnotify event operation
consistently as documented at https://github.com/fsnotify/fsnotify.

Signed-off-by: Alexandre Perrin <alex@kaworu.ch>
@kaworu kaworu added priority/low This is considered nice to have. kind/cleanup This includes no functional changes. area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. labels Sep 29, 2020
@kaworu kaworu requested review from brb, tgraf and a team September 29, 2020 14:53
@kaworu kaworu requested a review from a team as a code owner September 29, 2020 14:53
@kaworu kaworu self-assigned this Sep 29, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Sep 29, 2020
@kaworu kaworu added the release-note/misc This PR makes changes that have no direct user impact. label Sep 29, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Sep 29, 2020
@tklauser
Copy link
Member

test-me-please

@rolinh
Copy link
Member

rolinh commented Sep 29, 2020

@kaworu This probably needs backporting, right?

@rolinh
Copy link
Member

rolinh commented Sep 30, 2020

retest-runtime

@rolinh rolinh merged commit 28b4c96 into master Oct 1, 2020
@rolinh rolinh deleted the pr/kaworu/fsnotify-op-fix branch October 1, 2020 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. kind/cleanup This includes no functional changes. priority/low This is considered nice to have. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants