monoio::fs::File::from_std always returns Err PermissionDenied for regular file with linux legacy driver, because regular file does not support epoll and this method tries to register it to epoll with SharedFd::new. Switching to SharedFd::new_without_register should solve this problem as in OpenOptions::open.
Version
latest commit on branch master (dbdb3d8)
Platform
Linux 6.6
Description
monoio::fs::File::from_std
always returns ErrPermissionDenied
for regular file with linux legacy driver, because regular file does not support epoll and this method tries to register it to epoll withSharedFd::new
. Switching toSharedFd::new_without_register
should solve this problem as inOpenOptions::open
.