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

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

Re: [rdiff-backup-users] More on failures to SMB-mounted disk


From: Keith Edmunds
Subject: Re: [rdiff-backup-users] More on failures to SMB-mounted disk
Date: Thu, 3 Apr 2003 20:01:00 +0100

On Thu, 03 Apr 2003 10:23:08 -0800
Ben Escoto <address@hidden> wrote:

> They both look like fsync errors, and it seems to consistently
> fail.  Just to clarify, when you tested that fsync worked:
> 
> --------------------
> address@hidden kae $ python
> Python 2.2.2 (#1, Mar  6 2003, 16:53:00) 
> [GCC 2.95.3 20010315 (release)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os
> >>> fp = open("/nettmp/backup/temp", "rb")
> >>> os.fsync(fp.fileno())
> >>> 
> ---------------------
> 
> was /nettmp/backup/temp a directory, or just a regular file?  If it
> was a directory, I'm not seeing why rdiff-backup's fsync seems to fail
> consistently but it works from python directly.

It was a regular file. I've just tried it with a directory, and it
fails:

==========================
address@hidden kae $ python
Python 2.2.2 (#1, Mar 29 2003, 11:21:01) 
[GCC 2.95.3 20010315 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> fp = open("/nettmp/backup/kae", "rb")
>>> os.fsync(fp.fileno())
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OSError: [Errno 22] Invalid argument
>>> 
==========================

I'll try the patch and let you know.

Keith




reply via email to

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