1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/source/usb
Markus Lehtonen bdbf96d7d4 source/usb: scan host sysfs
Scan the mounted host sysfs instead of hard coded /sys mount point.
Currently, sysfs devices subdir is not namespaced in Linux (containers
have the same view as the host) so this wasn't an issue in practice.
However, this change should make the code more future proof and align
usb with other sysfs detection in nfd.
2022-10-24 20:53:10 +03:00
..
usb.go apis/nfd: flatten the structure of features data type 2022-10-18 18:37:28 +03:00
usb_test.go source: make per-source unit tests stricter 2021-12-03 10:26:26 +02:00
utils.go source/usb: scan host sysfs 2022-10-24 20:53:10 +03:00