There is a set of functions (DeviceFromPath, HostDevices, GetDevices) which are copied across a few repos, in some cases with minor changes:
So, main users are moby/moby, cri-o/cri-o, containerd, faasd, microsoft/hcsshim, containers/*, etc.
I propose to create moby/sys/devices, figure out the implementation which will suit all the users, and add it there.
There is a set of functions (
DeviceFromPath,HostDevices,GetDevices) which are copied across a few repos, in some cases with minor changes:So, main users are moby/moby, cri-o/cri-o, containerd, faasd, microsoft/hcsshim, containers/*, etc.
I propose to create
moby/sys/devices, figure out the implementation which will suit all the users, and add it there.