mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
0e3a9bfe1f
This patch solves the false-negative error message "failed to open file" referring to an ioctl info file during an ioctl call. The message is now avoided by checking for the existence of the file before reading it. However, the observed symptom uncovered an actual bug that was introduced in commit "libc vfs: open OSS 'info' file only once" with the attempt to cache the content of ioctl info files. When called multiple time for different paths, 'Vfs_plugin::_with_info' would wrongly return the info from the first call as cached in a local static variable. The patch fixes the problem by a new added 'Cached_ioctl_info' implementation in the scope of the 'Vfs_plugin'. Issue #4372 Fixes #4852