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

Ensure that NVME symlinks are not lost on udev change events #23

Merged
merged 3 commits into from
Feb 14, 2022

Conversation

nmeyerhans
Copy link
Contributor

Fixes #22

Description of changes:

#9 was overly aggressive in the events that it filtered, leading to a regression where any udev change event would remove the symlinks for the corresponding devices. This change ensures that the rules trigger for both "add" and "change" events, and that only "remove" events are skipped.

The RPM spec is update twice by this PR: once for the earlier 1.4-1 release, and once for a new 1.4.1-1 release that I'll generate once it is merged.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Noah Meyerhans added 2 commits February 11, 2022 09:33
Fixes amazonlinux#22

Symlinks need to be created on both add and change udev events,
otherwise they're lost any time a change event is opened, e.g. when a
device is open in read/write mode, e.g. when creating or mounting a
filesystem.
@zepplen
Copy link

zepplen commented Feb 14, 2022

Thank you for the quick response to this issue.

One quick note, I think you are missing a not in the ticket title?

Ensure that NVME symlinks are lost on udev change events
vs
Ensure that NVME symlinks are not lost on udev change events

@nmeyerhans nmeyerhans changed the title Ensure that NVME symlinks are lost on udev change events Ensure that NVME symlinks are not lost on udev change events Feb 14, 2022
@nmeyerhans
Copy link
Contributor Author

Thank you for the quick response to this issue.

One quick note, I think you are missing a not in the ticket title?

Ensure that NVME symlinks are lost on udev change events vs Ensure that NVME symlinks are not lost on udev change events

😄 Thanks for noticing that.

@nmeyerhans nmeyerhans merged commit 33d4bf1 into amazonlinux:1.x Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants