From 9f97b595e6f7b320333d039ff249ff436652daff Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Tue, 3 Nov 2009 14:40:58 -0800 Subject: Override the problem utimens setup 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: -- cgit v0.10.2