-
Notifications
You must be signed in to change notification settings - Fork 58
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
Please add support for /sys/bus/pci/slots #78
Comments
@martinpitt Any idea if such a thing is possible? I'm happy to contribute code, but I wanted to have your take on how to capture this/store it/mock it later... Thanks! |
My own devices don't have anything in /sys/bus/pci/slots, but the "barriere.debian.org" porter box has.
The So I'm trying to understand |
Hi @martinpitt, sorry for taking this long to get back to you on this. So I agree it's pretty disconnected from The field that is interesting there is stored in the Then, while enumerating the devices, you use the From the kernel source code for PCI slots, it looks like a shorter format is possible, such as I imagine in your machine "barriere" you're not connecting eth0 to a slot because eth0 is not a hotplug PCI device! If using systemd/udev names for the interfaces, they would become "ensX" or "wlsX". Unfortunately, I also don't have any devices which match that... At mocking time, I guess you'd override I'm actually happy to contribute code to implement this, but I'm wondering how you'd think this information should be represented... Something like this perhaps?
|
Actually, I just found a VM where I have an
And:
So I do have a machine where I can test such a change... |
I'm trying to use umockdev-run to add a regression test to systemd and prevent interface naming from breaking again.
So I got a umockdev-record of an interface for which we'd like to keep the name...
But the code that checks for the name enumerates the directories under /sys/bus/pci/slots and looks for one that matches the PCI address.
Any chance you could add support for /sys/bus/pci/slots in umockdev? I'm happy to contribute a patch but I would need some pointers...
For more details, see systemd/systemd#8458 (comment)
Thanks!
Filipe
The text was updated successfully, but these errors were encountered: