Tsumufs: utime

4 views
Skip to first unread message

Kevin Pouget

unread,
Sep 17, 2009, 12:50:05 PM9/17/09
to google-tsumufs
Hi dear list,

I'm are trying to fix some unhandled exceptions that occur when some
system calls like utime are raised.
I have a question about utime implementation in the fuse thread.
According to the current svn source, the code is as follows:

fusethread.py: 860

def utime(self, path, times):
'''
Set the times (atime, mtime, and ctime) of a file.

Returns:
True upon successful modification, otherwise an errno code is
returned.
'''

self._debug('opcode: utime | path: %s' % path)

try:
result= tsumufs.cacheManager.stat(path, True)

tsumufs.cacheManager.utime(path, times)
tsumufs.syncLog.addMetadataChange(path, times=times)

return True
except OSError, e:
self._debug('utime: Caught OSError: errno %d: %s'
% (e.errno, e.strerror))
return -e.errno


But I can't find any "stat" and "utime" methods in "cachemanager"
class (may be "statFile" instead of "stat" ?),
and the method "addMetadataChange" doesn't have "times" parameter.
I wonder that it may be a forgotten commit. I just want to make sure
before fixing it by implementing "utime" for both cachemanager and
synclog.

Cheers.
Reply all
Reply to author
Forward
0 new messages