ligurio / unreliablefs

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

cannot use touch(1) #52

Closed ligurio closed 3 years ago

ligurio commented 3 years ago
$ strace touch tmp/ddd
...
close(3)                                = 0                                                                                                       
utimensat(0, NULL, NULL, 0)             = -1 ENOSYS (Function not implemented)                                                                    
utimensat(AT_FDCWD, "tmp/ddd", NULL, 0) = -1 ENOSYS (Function not implemented)                                                                    
close(0)  
...
ligurio commented 3 years ago

utimens() is not implemented, see https://github.com/ligurio/unreliablefs/issues/16#issuecomment-786698219

ligurio commented 3 years ago

python code to reproduce:

import os

with open('meme', 'a'):
    os.utime('meme', (1330712280, 1330712292))
... 
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
OSError: [Errno 38] Function not implemented