On 10/1/20 5:27 PM, Ján Tomko wrote:
Assume nobody runs current libvirt on kernels such as 2.6.26.
Kernel commit 9f9c9cbb60576a1518d0bf93fb8e499cffccf377 (released
in 3.8) mentions the new path and I believe it was added by:
commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181
firmware: Basic dmi-sysfs support
(released in 2.6.39), but I cannot figure out how all that
kernel automagic works.
This reverts commit 4c81b0fdc57b23d80b1b4752cd6143d15c02e9c8
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/node_device/node_device_udev.c | 13 +++++--------
src/node_device/node_device_udev.h | 1 -
2 files changed, 5 insertions(+), 9 deletions(-)
Yeah, it's not very easy to find the code that corresponds to a sysfs
file or a directory in the path to the file.
Reviewed-by: Michal Privoznik <mprivozn(a)redhat.com>
Michal