ligurio / unreliablefs

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

'bad file descriptor' is thrown for simple RandomAccessFile.write/seek(0)/read sequence #14

Closed ligurio closed 3 years ago

ligurio commented 3 years ago
>>> f = open("/tmp/charibdushka/tst", "wr+")
>>> import binascii
>>> hs="123456789ABCDEF1"
>>> hb=binascii.a2b_hex(hs)
>>> f.write(hb)
>>> f.seek(0)
>>> f.read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 9] Bad file descriptor

charybdefs 13