ligurio / unreliablefs

A FUSE-based fault injection filesystem.
https://ligurio.github.io/unreliablefs/unreliablefs.1.html
MIT License
177 stars 9 forks source link

Allow specifying a set of errnos to select from #9

Open ligurio opened 3 years ago

ligurio commented 3 years ago

Allow setting a set of errnos rather than just a particular errno or a random one from the entire set. Update the cookbook for random faults to exclude any errnos passed via extra arguments.

My objective here is to be able to exclude a specific errno from random injection. The Go runtime gets confused by EAGAINs, which cause it to epoll_wait on the file descriptor. I'd like to exclude EAGAIN from the set of injected errors for my use case.

charybdefs 24

ligurio commented 3 years ago

Duplicate of #6?