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

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

[Rdiff-backup-bugs] [bug #15839] fsync fails on a read-only file


From: Andrew Ferguson
Subject: [Rdiff-backup-bugs] [bug #15839] fsync fails on a read-only file
Date: Sun, 06 Jan 2008 02:13:53 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12

Update of bug #15839 (project rdiff-backup):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #4:

Dean --

I've looked into this and it actually makes sense. The file was opened
read/write at some point in the past, and then closed. Now, we want to fsync()
it, so we have to reopen it to get a file handle. We don't need R/W, so we ask
for RO, but it doesn't work on some platforms.

I've changed:

if (e.errno != errno.EPERM and e.errno != errno.EACCES) 
or self.isdir(): raise 

to

if (e.errno not in (errno.EPERM, errno.EACCES, errno.EBADF)) 
or self.isdir(): raise 

in CVS.

Andrew

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?15839>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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