diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2009-11-03 22:40:58 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2009-11-03 22:40:58 (GMT) |
commit | 9f97b595e6f7b320333d039ff249ff436652daff (patch) | |
tree | 0e26813d1f697aaeb634d2c3ba4b79fa539ee20d | |
parent | 8a2c03fe1c4ce3e23b117922ee587dc7ad46126c (diff) | |
download | fusearchive-9f97b595e6f7b320333d039ff249ff436652daff.zip fusearchive-9f97b595e6f7b320333d039ff249ff436652daff.tar.gz fusearchive-9f97b595e6f7b320333d039ff249ff436652daff.tar.bz2 |
Override the problem utimens setup
-rw-r--r-- | FuseArchive/FileSystem.py | 2 | ||||
-rwxr-xr-x | fusearchive.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/FuseArchive/FileSystem.py b/FuseArchive/FileSystem.py index 93f8101..c875230 100644 --- a/FuseArchive/FileSystem.py +++ b/FuseArchive/FileSystem.py @@ -132,7 +132,7 @@ class FileSystem(fuse.Fuse): # subsecond preciseness in acces/modify times. # def utimens(self, path, ts_acc, ts_mod): - logging.error( "Ignoring utimens, hope you like it rsync!" ) + logging.debug( "Ignoring utimens, hope you like it rsync!" ) # os.utime("." + path, (ts_acc.tv_sec, ts_mod.tv_sec)) def access(self, path, mode): diff --git a/fusearchive.py b/fusearchive.py index 624cc3c..13e0ab7 100755 --- a/fusearchive.py +++ b/fusearchive.py @@ -13,6 +13,13 @@ import FuseArchive enable_stats = False enable_psyco = False +# Redefine the timespec class so that fuse doesn't break when rsync does a +# utimens call +def junkutimens(self, *whatever, **whatevermore): + self.tv_sec = None + self.tv_nsec = None +fuse.Timespec.__init__ = junkutimens + if enable_psyco: # Import Psyco if available try: |