rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] problems backing up to smbmounted dir


From: dean gaudet
Subject: Re: [rdiff-backup-users] problems backing up to smbmounted dir
Date: Thu, 21 Jul 2005 20:15:35 -0700 (PDT)

On Thu, 21 Jul 2005, robert breithuber wrote:

>     os.fsync(fd)
> OSError: [Errno 22] Invalid argument

i wonder what it's trying to fsync... i suppose we could ignore an error 
there, but you'd probably run into more problems.

you could try this completely untested patch.

-dean

Index: rdiff_backup/rpath.py
===================================================================
RCS file: /cvsroot/rdiff-backup/rdiff-backup/rdiff_backup/rpath.py,v
retrieving revision 1.79
diff -p -u -u -r1.79 rpath.py
--- rdiff_backup/rpath.py       30 Jun 2005 22:26:22 -0000      1.79
+++ rdiff_backup/rpath.py       22 Jul 2005 03:15:07 -0000
@@ -1045,7 +1045,9 @@ class RPath(RORPath):
                """fsync current file, run locally"""
                assert self.conn is Globals.local_connection
                fd = os.open(self.path, os.O_RDONLY)
-               os.fsync(fd)
+               try: os.fsync(fd)
+               except OSError, e:
+                       if e.errno == errno.EINVAL: pass
                os.close(fd)
 
        def fsync_with_dir(self, fp = None):




reply via email to

[Prev in Thread] Current Thread [Next in Thread]