ligurio / unreliablefs

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

Log operations to a text file #13

Closed ligurio closed 3 years ago

ligurio commented 3 years ago

Sometimes users wonder was fault injection happen or not. Logging can help to answer on such questions.

Logging real operations in pass-through mode without fault injections allows to analyze operations frequency per type and set probabilities for fault injections similar to real usage.

TODO: create a script that analyze operations log.

See also https://github.com/rflament/loggedfs

ligurio commented 3 years ago

BTW it can be easily done with -o debug passed to binary before mount and redirection to a file.