aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FuseArchive/FileSystem.py2
-rwxr-xr-xfusearchive.py7
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: