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

Fix adding/removing devices to the LVM reject filter #959

Conversation

vojtechtrefny
Copy link
Member

Because the filter is a list internally we can add a device multiple times to it and remove it only once when we decide to use the device.

Because the device doesn't depend on itself the existing code
won't remove the device we are trying to modify from the list.

Resolves: rhbz#1955942
To prevent devices being added multiple times and removed only
once.

Related: rhbz#1955942
Copy link
Contributor

@japokorn japokorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@vojtechtrefny vojtechtrefny merged commit 9d45675 into storaged-project:3.4-devel Jul 27, 2021
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.

None yet

2 participants