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

RFE: mitigate udev db inconsistency #1002

Open
dwlehman opened this issue Dec 15, 2021 · 1 comment
Open

RFE: mitigate udev db inconsistency #1002

dwlehman opened this issue Dec 15, 2021 · 1 comment

Comments

@dwlehman
Copy link
Contributor

Sometimes udev's data becomes inconsistent with the actual state of the system. The invalid data is then reported by lsblk and blkid until something triggers the udev db to correct its view. In the meantime, blivet has problems because of the faulty reporting. The purpose of this issue is to discuss options for mitigation within blivet and, hopefully, come up with a plan.

I'll briefly describe a couple of options to start the discussion:

  1. stop using udev for identification of data format (aka: file system type)
  2. fallback data sources (eg: if no data in udev call libblkid directly, bypassing udev)

In general, it would make sense to structure the data sources we use when populating the device tree such that they can change without much disruption. A data-source interface could have implementations for udev, blkid, mdadm, lvm, et al. Then a mechanism could be used to dictate the order in which to query sources for a particular piece of information based on some criteria. It seems to me that such an approach would enable either of the specific options mentioned above. Perhaps it's more disruptive than is warranted, though.

Thoughts?

@dwlehman
Copy link
Contributor Author

@vojtechtrefny what do you think?

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

No branches or pull requests

1 participant