ligurio / unreliablefs

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

Allow arbitrary large duration option #122

Closed xaizek closed 1 year ago

xaizek commented 1 year ago

nanosleep() fails if .tv_nsec is larger than 999999999, so duration must be distributed between .tv_sec and .tv_nsec. Duration also needs to be stored in unsigned long long to be able to store values of more than ~4 seconds.

ligurio commented 1 year ago

Fixed by commit 250990a7df3159a84b488bb2a6ba6b5f888f2618. Added a tag to commit message.

@xaizek, thanks!