Closed amshinde closed 7 years ago
@amshinde Could you please copy the first commit message into that PR description?
@amshinde please add a description to the PR.
LGTM
@sboeuf Can you merge this ?
All comments have been addressed. Let's merge this and we should continue to track clearcontainers/runtime#746 since we should also implement something in the runtime itself.
Ability to obtain device names from major-minor number of device was added in kernel 2.6.27 version: torvalds/linux@e105b8b
But for certain devices like /dev/cuse, /dev/fuse, this sysfs interface may not exist. This may also depend on the kernel version used.
We are primarily using this sysfs interface to obtain device name in case the renamed device name was passed to the runtime.
To accomodate these devices, which are passed by docker by default for priveleged/non-priveleged containers, we ignore the missing file error for /sys/dev files and assume device name passed in the oci spec file for such devices is not the renamed device name.