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

Include btrfs volumes names/labels in DeviceTreeBase.names #1153

Conversation

vojtechtrefny
Copy link
Member

Btrfs Volumes use label of the filesystem as name in blivet, which isn't really a name, so it doesn't have to be unique, but not having it unique causes problems in both Blivet and Anaconda where we assume device name is a unique identifier. Not having the name in the list of names means newly created devices can get the same name as an already existing (or scheduled to be created) device.


@dwlehman btrfs volumes were explicitly excluded even before #688 Do you know about any issues adding btrfs volumes names to the list could cause? We are currently having two bugs reported related to this and the new Anaconda WebUI: https://bugzilla.redhat.com/show_bug.cgi?id=2237375 and https://bugzilla.redhat.com/show_bug.cgi?id=2237375

Copy link
Contributor

@dwlehman dwlehman left a comment

Choose a reason for hiding this comment

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

I found the old commit, which only said to exclude the btrfs volume names because they have no device node. I don't think that makes sense given that we also include VG names.

Your patch looks good to me.

Btrfs Volumes use label of the filesystem as name in blivet, which
isn't really a name, so it doesn't have to be unique, but not
having it unique causes problems in both Blivet and Anaconda where
we assume device name is a unique identifier. Not having the name
in the list of names means newly created devices can get the same
name as an already existing (or scheduled to be created) device.
@vojtechtrefny vojtechtrefny changed the base branch from 3.8-devel to 3.9-devel October 27, 2023 11:05
@vojtechtrefny vojtechtrefny marked this pull request as ready for review October 27, 2023 11:05
@vojtechtrefny vojtechtrefny merged commit e975a2e into storaged-project:3.9-devel Oct 27, 2023
11 checks passed
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.

2 participants